Extracting data from alpha numeric field

A

Adam

I have a field that contains alpha numeric data. How do I
separate the alpha and numeric information from this field?

For example:
3S1W1 ------> 3 S 1 W 1
3S1W2CD ----> 3 S 1 W 2 CD
2S1W34AA ---> 2 S 1 W 34 AA

Thanks for the help!
 
M

[MVP] S. Clark

Chr$(65) = "A"

asc(0)= 48
asc(9)= 57
asc("Z")= 90
asc("A")= 65

Thus, to decipher if something is a Number or a Letter, you can check the
asc() val. If it's between 48 and 57, you have a number... 65-90 is a
letter.

--
HTH,

Steve Clark, Access MVP
FMS, Inc.
Professional Solutions Group
http://www.FMSInc.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Is your Access database too slow?
Are you ready to upgrade to SQL Server?
Contact us for optimization and/or upsizing!
http://www.FMSInc.com/consulting
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top