Hi, Please forgive me as I am new to these forums and access. I am trying to generate an ID field within a form. The format of the ID is 01TomSmi (ID number one higher than the last, followed by the first 3 letters the letter of the first name and the first 3 letters of the last name). I want the ID to automatically generate in my form. I have used the following code. =Left([Firstname],3) & Left([Lastname],3) & Max(Left([IDnumber],2)+1), although I am unsure where to put it. If I put the code in the control source, I get an error saying the primary key is null, although I can see it has generated correctly. If i put it in the default value it does not update when I change the name in the form.
Any help would be appreciated, thanks.