I have a basic form where the customer fills in; First Name, Surname, Address, Postcode and Telephone. I need to create a unique "customer id" for each person. So once they have filled in the required spaces, i run an append query to the customers table. The "customer id" must consist of the first three letters of their surname and 4 unique numbers.
To get the letters (this works) I have:
=Left$([Surname],3)
But, im having problem adding the numbers onto the end of the letters;
& (Max([=Right([number],4)])+1)
[number] is a hidden textbox on the form where the customer enters the data - 1234.
Am i doing this right? or is there anything I need to do differently? thanks.
To get the letters (this works) I have:
=Left$([Surname],3)
But, im having problem adding the numbers onto the end of the letters;
& (Max([=Right([number],4)])+1)
[number] is a hidden textbox on the form where the customer enters the data - 1234.
Am i doing this right? or is there anything I need to do differently? thanks.