Text Strings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I have a field that looks like this:

LastName, FirstName

I want to strip out the text up to but not including the comma and put
LastName and FirstName is separate fields. I'd appreciate any help on this.

Thanks in advance and have a great weekend.
 
Assuming your existing field is FullName, you can calculate:

LastName: Trim(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

Back
Top