ThunderGeek
Technical User
Greetings
Here is the problem:
I am using an update query to update a UPS shipping table,from my shipping database
I have a field called [Ship CSV] within this field is combines 1.the customers Name, 2. State, and 3. Zip code.
The format is as such:
OAK LAWN, IL 60453
The City is seperated by a comma, then one space to seperate state, and then two spaces to seperate zip.
I am able to pase out the Zip and City:
ParseZip: Right$([Ship CSZ],Len([Ship CSZ])-InStr(5,[Ship CSZ],",")-5)
ParseCity: Left$([Ship CSZ],InStr(1,[Ship CSZ],",")-1)
but I can not get the State to seperate.
Any help would be appericated.
Thanks TG
Here is the problem:
I am using an update query to update a UPS shipping table,from my shipping database
I have a field called [Ship CSV] within this field is combines 1.the customers Name, 2. State, and 3. Zip code.
The format is as such:
OAK LAWN, IL 60453
The City is seperated by a comma, then one space to seperate state, and then two spaces to seperate zip.
I am able to pase out the Zip and City:
ParseZip: Right$([Ship CSZ],Len([Ship CSZ])-InStr(5,[Ship CSZ],",")-5)
ParseCity: Left$([Ship CSZ],InStr(1,[Ship CSZ],",")-1)
but I can not get the State to seperate.
Any help would be appericated.
Thanks TG