Names

T

Tim

I import information from an internet source that contains a name field
composed of the first and last names of individuals. I use this data in a
mail merge but need only the last name in one insert field. Is it possible
to use a query to extract only the last name from the name field?

Thanks
Tim
 
T

Tim

Yes there are "FirstName{Space}LastName" and your answer works.

Thank You
Tim

[MVP] S.Clark said:
Assuming all names are "FirstName{Space}LastName" ...

LastName: Mid$([FullName], instr([FullName], " ") + 1)

--
HTH,

Steve Clark, Access MVP
FMS, Inc.
Professional Solutions Group
http://www.FMSInc.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Is your Access database too slow?
Are you ready to upgrade to SQL Server?
Contact us for optimization and/or upsizing!
http://www.FMSInc.com/consulting
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Tim said:
I import information from an internet source that contains a name field
composed of the first and last names of individuals. I use this data in a
mail merge but need only the last name in one insert field. Is it possible
to use a query to extract only the last name from the name field?

Thanks
Tim
 

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