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

Newbie needs help extracting info from field 1

Status
Not open for further replies.
Apr 25, 2002
69
US
I have a table that has a field LASTNAME,FIRSTNAME. I want to be able to extract first initial last name from this (ie: JONES,BOB = bjones). Can someone help this newbie?
Many thanks!
 
Chuck,
Check Help for the functions Instr(), Mid(), Left()...
Try:
Mid([LastFirst],Instr([LastFirst],",")+1,1) & Left([LastFirst],Instr([LastFirst],",")-1)

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
The last post is right on target. However, in the long term you need to use multiple fields to hold names. Most db with names use three fields: firstname, lastname, and title.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top