Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strip Right Side String 1

Status
Not open for further replies.

cabobound

Programmer
Jul 11, 2007
80
US
Im trying to spread a city/state field in two. How do I do this with VBA?


n![City] = rst![Optional City/State]

Where rst![Optional City/State]="CHICAGO IL"
 
<State> = right(<string>,2)
<City> = left(<string>,len(<string>)-3)

_________________
Bob Rashkin
 




Hi,

Check out the Data > Text to columns... spreadsheet feature

Skip,

[glasses]I'll be dressed to the nines this week, as I go to have my prostatectomy...
Because, if I'm gonna BE impotent, I want to LOOK impotent![tongue]
 



..or Rightstring, 2), Left(string, len(string)-3)

Skip,

[glasses]I'll be dressed to the nines this week, as I go to have my prostatectomy...
Because, if I'm gonna BE impotent, I want to LOOK impotent![tongue]
 



..or Right(string, 2), Left(string, len(string)-3)

Skip,

[glasses]I'll be dressed to the nines this week, as I go to have my prostatectomy...
Because, if I'm gonna BE impotent, I want to LOOK impotent![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top