Splitting One Field into Two

P

Pauline

I imported data from Word Perfect to text then to Access.
I would like to split the name field into two fields,
FirstName and LastName.
 
G

GVaught

Assuming a space between a firstname and lastname use this to extract for
the firstname in a query
FName: Left([Name],InStr([Name]," ")-1)

use this for the lastname in the query:
LName: Mid([Name],InStr([Name]," ")+1)

If you have a comma then just add that value between the " " like this ","
 

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