A basic rule of database design is "one fact, one field". By stuffing
"FullName" (John Smith) into a single field, your database violates this
principle.
If only it were only a matter of principles!
As you are finding out, working with the separate facts (FirstName,
LastName) is considerably more difficult if you don't store your raw data as
two fields.
.... and it gets much, much worse! If you have "John Claude van Damm" in
your list of people, the way you'd re-format that would be different than
the way you'd re-format "Colonel John Sanders, Jr.", and "John Smith".
One more thing, if your field name is truely "NAME", you and Access will be
quite confused. Access treats this word ("NAME") as a reserved word, so
what you think it means and what Access thinks it means ...!?!
My first recommendation would be to create two new fields in your 'person'
table (FirstName, LastName) and get all your current NAMEs split into their
respective parts. Then it is quite easy to use a query and add a new field:
NewField: [LastName] & ", " & [FirstName]
Regards
Jeff Boyce
Microsoft Office/Access MVP
pauld said:
The names of people in my database are in normal first name / last name
format, ie, John Smith.
I need to create a report where the names are displayed in last/first
format, ie, Smith, John.
I'm reasonably adept at Access 2003 (which is what I use for my db), but
can't figure out how to do this. I don't want to change the NAME field.
Can anybody offer some ideas?
Thank you.