Trim Last Name

B

Bill B.

How can I retrieve the last name only from a field formatted like First Name,
Space, Last Name (John Smith)? TIA

Bill B.
 
J

Jeff Boyce

Bill

Parsing a FullName field to get last name only is not an insignificant
undertaking.

First, are you quite certain you have no middle names/initials?

Do you have any lastnames that are "compound" (e.g., Williams-Smyth, Johnson
Brackston, van de Wegge, ...)? How do YOU know where firstname ends and
lastname begins?

You may need to "do your best" with functions like Left(), Right(), Mid(),
Instr() in queries, then manually clean up what didn't automatically
convert.

Good luck!

Regards

Jeff Boyce
Microsoft Office/Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top