databasedonr
Registered User.
- Local time
- Today, 07:33
- Joined
- Feb 13, 2003
- Messages
- 163
Hi all,
I know this should be a relatively easy solution, but I can't remember/think how, and I can't find a solution by searching....
I have a "legacy" database in Access2000 where a username is entered in a Name field as "Surname, Firstname".
I want to split the data by extracting the surname (to the comma) and writing that into a new field that I have created called Surname.
I know I can do this use Left, Right or Mid functions if my string is the same length, but unfortunately last names are variable.
Is there a nice simple way of updating my data in a query (I'm not great at VB, but could give it a shot with lots of guidance.
Thanks,
I know this should be a relatively easy solution, but I can't remember/think how, and I can't find a solution by searching....
I have a "legacy" database in Access2000 where a username is entered in a Name field as "Surname, Firstname".
I want to split the data by extracting the surname (to the comma) and writing that into a new field that I have created called Surname.
I know I can do this use Left, Right or Mid functions if my string is the same length, but unfortunately last names are variable.
Is there a nice simple way of updating my data in a query (I'm not great at VB, but could give it a shot with lots of guidance.
Thanks,