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!

Separating First and Last Name 1

Status
Not open for further replies.

Tobey

Technical User
Nov 29, 2000
2
0
0
US
Ugh!!! I used to know how to use a query to select text from the left or right up to a space and put it into another column. I cannot recall how to do this. Can anyone help?
 
This is a 'don't go there' topic. If the universe of users has entered 'fullnames' into a single field, there will be a lot of variations in the manner of entry. If you simply MUST - and are willing to ASSuME there are only two names seperated by one or more spaces:

FName: Left([FullName],
LName: Trim(Right([FullName], Len([FullName]) - Instr([FullName], " ")+ 1))

Should be sufficient clues here for you to get into REAL trouble with the variations.






MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top