[AccessD] Splitting up names

Elam, Debbie DElam at jenkens.com
Thu May 11 13:38:04 CDT 2006


Hmm, there are a few things you might be able to pick out reliably like
common prefixes and suffixes (Jr.), but the bulk will probably be best
handled with a splitting fields on the spaces with manual cross checking.
Data like the following make it impossible to tell which field that middle
name belongs in.

MARY ELLEN SMITH
JOHN VAN HORN

Debbie

-----Original Message-----
From: John Clark [mailto:John.Clark at niagaracounty.com] 
Sent: Thursday, May 11, 2006 1:22 PM
To: accessd at databaseadvisors.com
Subject: [AccessD] Splitting up names


If got a user running a db in Access. She has a list of names and they
were all input into a single "name" field, rather than "last name" &
"first name." She would now like to split these names up, but there are
some double first names, as well as "jr" and "sr" suffixes. 

Is there a way to do this?

Basically names might be like this:

JOHN SMITH JR
MARY ELLEN SMITH
BARBARA SMITH

And I'd need to get them like this into a first name field like:

JOHN
MARY ELLEN
BARBARA

and a last name field like:

SMITH JR
SMITH
SMITH

John W. Clark
Computer Programmer
Niagara County
Central Data Processing

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
- JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject
to the Attorney-Client Privilege, (2) an attorney work product, or (3)
strictly confidential. If you are not the intended recipient of this
message, you may not disclose, print, copy or disseminate this information.
If you have received this in error, please reply and notify the sender
(only) and delete the message. Unauthorized interception of this e-mail is a
violation of federal criminal law. 
This communication does not reflect an intention by the sender or the
sender's client or principal to conduct a transaction or make any agreement
by electronic means.  Nothing contained in this message or in any attachment
shall satisfy the requirements for a writing, and nothing contained herein
shall constitute a contract or electronic signature under the Electronic
Signatures in Global and National Commerce Act, any version of the Uniform
Electronic Transactions Act or any other statute governing electronic
transactions.



More information about the AccessD mailing list