Text functions

C

CJ

Hello all, I have first & last name in one field and a
backslash (/) is between the first & last name. I need to
pull out just the last name or the first, at this point
it doesn't matter which. Which text function would I need
to use and how do I build this expression??

Thanks!
 
R

Rick Brandt

CJ said:
Hello all, I have first & last name in one field and a
backslash (/) is between the first & last name. I need to
pull out just the last name or the first, at this point
it doesn't matter which. Which text function would I need
to use and how do I build this expression??

Thanks!

FirstName: Left([YourFieldName], Instr(1, [YourFieldName], "/")-1)

LastName: Mid([YourFieldName], Instr(1, [YourFieldName], "/")+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