I have a Name field that I would like to divide into 3 seperate parts?
example:
John W Smith
Lisa Marie Jones
I would like the the result to be 3 different fileds: First, Middle, Last
Name
Is this even possible?
Possible but tedious. What will you do with John Ronald Reuel Tolkien? Or
Madonna? Or Rhoda Mae Johnson (whose first name is Rhoda Mae, just ask her)?
With someone who has no middle name?
I'd suggest adding FirstName, MiddleName and LastName fields to the table, and
then run a series of update queries. First update FirstName to
Left([Name], InStr([Name], " ") - 1)
using a criterion of
LIKE "* *"
on name to be sure there IS a blank in it. In the same query update LastName
to
Mid([Name], InStr([Name], " ") + 1)
Then in a second query, use a criterion of
LIKE "* *"
on LastName and update MiddleName to
Left([LastName], InStr([LastName], " ") - 1)
and LastName to
Mid([LastName], InStr([LastName], " ") + 1)
Then do a search of all three fields using a criterion of
LIKE "* *" OR IS NULL
to find any remaining odd blanks. You should find NULL values only for
MiddleName (for people with no middle name) but there might