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

query for everything left (or right) of delimeter

Status
Not open for further replies.

bravo6

IS-IT--Management
Mar 23, 2006
83
0
0
US
One of the fields in my table has passenger name in the format lastname/firstname. I need to break this into to two fields in my query results "lastname" and "firstname". How do ask for everything to the left of the "/" and then everything right of it?

This is in Access not SQL.


Thanks
 




Hi,

Check out InStr, Left, Right & Len functions

Skip,
[sub]
[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue][/sub]
 




Is this for a query or did you want to modify the table structure/data?

Skip,
[sub]
[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue][/sub]
 
What do you mean? Those functions take certain parameters and return everything left or right of what you specify...how could they have been of no help at all?


Leslie

In an open world there's no need for windows and gates
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top