L
Leslie
I am trying to atomize a database so that I can build a
more efficient search function. I know how to separate the
First name from the Last name using two functions:
FirstName: Mid([tblOrders]![FullName],1, _
InStr([tblOrders]![FullName]," ")-1)
LastName: Mid([tblOrders]![FullName], _
InStr([tblOrders]![FullName]," ")+1)
.. . . but I don't know how to extract the Middle name and
it ends up with the Last name in the LastName field. (I
would actually most prefer to have only two fields - one
that contains the First and Middle names, and one that
contains the Last Name and any suffixes, but will break it
into three or more fields if necessary). I also get an
"#Error" message in the new FirstName field of there is
only one name in the FullName field to begin with (which I
am assuming would happen many times over if I tried to use
a function similar to the FirstName function to extract the
Middle name from the new LastName field).
I should also note that the table I am extracting this from
already has many thousands of records and that I will be
needing to carry out this data modification many times over
as data is being imported into the table.
Any suggestions?
Many thanks for your valuable MVP assistance!
more efficient search function. I know how to separate the
First name from the Last name using two functions:
FirstName: Mid([tblOrders]![FullName],1, _
InStr([tblOrders]![FullName]," ")-1)
LastName: Mid([tblOrders]![FullName], _
InStr([tblOrders]![FullName]," ")+1)
.. . . but I don't know how to extract the Middle name and
it ends up with the Last name in the LastName field. (I
would actually most prefer to have only two fields - one
that contains the First and Middle names, and one that
contains the Last Name and any suffixes, but will break it
into three or more fields if necessary). I also get an
"#Error" message in the new FirstName field of there is
only one name in the FullName field to begin with (which I
am assuming would happen many times over if I tried to use
a function similar to the FirstName function to extract the
Middle name from the new LastName field).
I should also note that the table I am extracting this from
already has many thousands of records and that I will be
needing to carry out this data modification many times over
as data is being imported into the table.
Any suggestions?
Many thanks for your valuable MVP assistance!