I have a user who is set on using first and last name combination as unique ID. I am having problem with customers who have the same first and last name. I thought of solving the problem by assigning a sequence number to each lastname and firstname so that each will become a unique identifier. For e.g. if John Smith was in the database first, his unique identifier will be JSM001. Then later if, Jack Smith is entered into the system his unique identifier will be JSM002 and so on. And then later if Alan Smith came into the system, his unique ID will be ASM001. How can I program Access to automagically look for the last occurence of similar unique ID and assigned the correct ID in the correct sequence. I hope I am making sense to someone. Here is a sample data and the desired unique ids. I know that using autonumber will work better but I am working with existing data that are already there. I only want to use the same logic using Access. The previous programmer created the original database using a very early version of FoxPro. Thank you in advance for your help.
FName LName UniqueID
John Smith JSM001
Jack Smith JSM002
Alan Alda AAL001
Joe Smith JSM003
Albert Alda AAL002