String Functions

J

JL

The function "instr" will find character in a string.
To answer your question,

lastname = Trim(Mid(FullName, 1, InStr(FullName, ",") - 1))
firstname = Trim(Mid(FullName, InStr(FullName, ",") + 1))

Hope this will help.
 

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