Splitting the Infomation Contained in a field

G

Guest

I have a field that contains a persons name Smith, John. I want to create
two fields last name and first name. Is there any easy way to accomplish
this?
 
D

Douglas J. Steele

If there's always a comma in it, you can use code like:

LastName = Left(FullName, InStr(FullName, ",") - 1)
FirstName = Trim(Mid(FullName, InStr(FullName, ",")+1))
 

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