G
Guest
I have an empty field called CONTACT_ID and I want to populate it with
lastname (3chars) / firstname (2 chars) and then a number starting 01 but
only incrementing if the lastname/firstname is not unique.
update so far is :IIf(Len(RTrim([ZZZContact.last
name]))>5,Left([zzzcontact.Last Name],5) & Left([zzzcontact.First Name],2) &
"01",Left([zzzcontact.Last Name],Len(RTrim([ZZZCONTACT.LAST NAME]))) &
Left([zzzcontact.First Name],2) & "01")
hence "01" needs to be changed to the autonumber. Example data currently is
Last Name First Name Contact
LEE ANDY LEEAN01
LEE ANGELA LEEAN01
LEE CHRIS LEECH01
hence I would get duplicates.
lastname (3chars) / firstname (2 chars) and then a number starting 01 but
only incrementing if the lastname/firstname is not unique.
update so far is :IIf(Len(RTrim([ZZZContact.last
name]))>5,Left([zzzcontact.Last Name],5) & Left([zzzcontact.First Name],2) &
"01",Left([zzzcontact.Last Name],Len(RTrim([ZZZCONTACT.LAST NAME]))) &
Left([zzzcontact.First Name],2) & "01")
hence "01" needs to be changed to the autonumber. Example data currently is
Last Name First Name Contact
LEE ANDY LEEAN01
LEE ANGELA LEEAN01
LEE CHRIS LEECH01
hence I would get duplicates.