Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / July 2006

Tip: Looking for answers? Try searching our database.

Convert Existing Full Name Data > Seperate First & Last Name Field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Curtis Stevens - 31 Jul 2006 18:38 GMT
Is this possible, have a list of records where their full name is in one
field, covert all those records so their name is split up into two fields,
first & last name?

Thanks
Curtis
freakazeud - 31 Jul 2006 19:23 GMT
Hi,
create an update query which splits the two values into there seperate
fields.
You did not give too much information on how the strings look, but you might
find a solution in this article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;209045
You will see that you will probably need to use some sort of combinations of
string manipulation functions to retrieve the necessary information.
HTH
Good luck
Signature

Oli-S
Admin Specialist & Computer Science Major @ UMD - Go Terps - :)
http://www.oli-s.de

> Is this possible, have a list of records where their full name is in one
> field, covert all those records so their name is split up into two fields,
> first & last name?
>
> Thanks
> Curtis
John Nurick - 31 Jul 2006 19:56 GMT
Hi Curtis,

A crude but fairly effective approach that works for most traditional
American names is:
   
1 Assume that everything up to the first space is the first name.

2 If there are no other spaces, the remainder is the last name.

3 If there are spaces, check for particles such as "de", "de la", "van",
"van der" and so on. If the remainder fits one of these patterns, assume
it's the last name. If it doesn't, move on to the next space and loop
back to 2.

4 Assume that everything between the first space and the beginning of
the last name is the middle name.

To do much better than this means a *lot* of programming. Consider using
a commercial tool such as Splitter For Microsoft Access
http://www.infoplan.com.au/splitter/. This isn't perfect (as I said,
nothing can be) but at least someone else has done the hard work<g>.

The problem is that you can't trust people to have names that fit the
pattern:
    Pierre Joseph Marie Teilhard de Chardin
    Boutros Boutros Ghali
    Emmanuel Le Roy Ladurie
    J. Edgar Hoover
    Laurens Van Der Post
    Sitting Bull
to name but a few. And there are billions of people in the world (the
majority, as far as I know) whose names don't fit the traditional
American "first middle last" pattern at all: for instance all the places
where the family name is put first and the personal name(s) last.

In addition, there are names that are written identically but parse
differently:
   
    Mary Patrick Henry (daughter of devoutly Catholic
        Mr & Mrs Henry, Patrick is middle name)
    Mary Patrick Henry (family name is "Patrick Henry", let's
        not ask why)

So there's no possibility of writing code that can do this job
perfectly.

>Is this possible, have a list of records where their full name is in one
>field, covert all those records so their name is split up into two fields,
>first & last name?
>
>Thanks
>Curtis

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
Curtis Stevens - 31 Jul 2006 20:36 GMT
Thanks for the relplies, the first post did it!!!!  Most of ours fits into
this category and the ones that don't don't get changed and can look at them
later.  I can also easily scan them to see if they look right.  We aren't
talking about 10,000 records to go through....  But more than a few hundred.

Thanks!!

Curtis
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.