Splitting Name Field into First and Last Name Fields

E

Eve

The database has over 77000 records.
The name field is such: lastname,firstname.
Can it be split into two separate fields, for example
using the comma as separator?
 
R

Rick Brandt

Eve said:
The database has over 77000 records.
The name field is such: lastname,firstname.
Can it be split into two separate fields, for example
using the comma as separator?

FirstName = Mid([YourField], Instr(1, [YourField], ",")+2)
LastName = Left([YourField], Instr(1, [YourField], ",")-1)

Unless there really is no space after the comma as in your post. Then the first one
is +1 rather than +2.
 
J

Julie Puchalski

Eve said:
The database has over 77000 records.
The name field is such: lastname,firstname.
Can it be split into two separate fields, for example
using the comma as separator?

Hi Eve,

I use Splitter for Microsoft Access to split names in Access databases.
It's designed to make this task as painless as possible.

http://www.infoplan.com.au/splitter

- Julie
 

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