Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2005, 12:34 AM
Authorized User
 
Join Date: Sep 2003
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zaeem Send a message via Yahoo to zaeem
Default Searching Within String

Hello this is Zaeem, I want to split a string, the string is like "EE123" which is basically course code of electronics in some intitute. the first two letter must be alphabet and remaining will be the digits.
I want to get splitted string digits and characters.
Anyone please help me.

thanx everybody

Zaeem Sherazi
__________________
Zaeem Sherazi
 
Old May 9th, 2005, 01:37 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have not specified whether its from mssql or access or vbscript ...
Any in most cases you have substring/substr...

 
Old May 9th, 2005, 09:11 AM
Authorized User
 
Join Date: Sep 2003
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zaeem Send a message via Yahoo to zaeem
Default

I use MS Access.
Looking for help from you.
Bye


Zaeem Sherazi
 
Old May 10th, 2005, 01:06 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can try

 Select Left(Myfield,2) as numPart , Right(Myfield,len(Myfield-2)) as strPart from yourTable

Prashant






Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching a String Hello_kitty Access 1 August 17th, 2005 09:45 AM
Searching Within String zaeem VB Databases Basics 1 May 9th, 2005 03:04 PM
Searching for a string.... interrupt Javascript How-To 2 February 7th, 2005 01:00 PM
String Searching in a Table umagrama Access VBA 3 December 5th, 2003 12:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.