I have a table which has a "Name" field that contains the
names of our members in the format "LastName, FirstName".
I need to change these to "Firstname Lastname" and make a
new table with that for another database. Can anyone help
with this? Thanks a bunch.
TJones
If you really do have a field named "Name" I would strongly suggest
you change it to something else, perhaps "ClientName" or "CustName".
See the appropriateMicrosoft KnowledgeBase article for your version of
Access:
109312 'Reserved Words in Microsoft Access'
209187 'Acc2000: 'Reserved Words in Microsoft Access'
286335 'ACC2002: Reserved Words in Microsoft Access'
To answer your question regarding parsing the names into 2 SEPARATE
fields:
IF the names are all in the same order..
LastName Comma Space FirstName
Smith, Frank
LastName:Left([FullName],InStr([FullName],",") -1
FirstName:Mid([FullName],InStr([FullName],",")+2
You would use the above to create 2 separate fields in a make table
query.
Using 2 separate fields, you can easily put the names together in any
order you wish:
= [FirstName] & " " & [LastName]
Frank Smith
= [Lastname] & ", " & [FirstName]
Smith, Frank
= Left([FirstName],1) & ". " & [LastName]
F. Smith