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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parsing a text field 1

Status
Not open for further replies.

kevinluebb

Programmer
Jan 4, 2002
30
0
0
US
I have a field in an imported table consisting of
FIRSTNAME/LASTNAME. I need to separate the first from the
last and put those into their respective fields within the
same table.

Not sure how this is handled in Access. I tried to use CHARINDEX in an update routine but can't seem to get the
syntax correct.
 
FirstName: Left(Name,Instr(Name,"/")-1)

LastName: Right(Name,Len(Name)-Instr(Name,"/"))

You can put those calcs in the update to line in your query design. Maq B-)
<insert witty signature here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top