at the moment we have been given this problem where we have to incoporate a Dmax function into the following code
IDnumber = Left(Firstname, 3) + Left(Lastname, 2)
from this code the ID number creates something that looks like this
gembl
however i need a four digit number after this ID, for every different ID i need the numbers to increase by one the following code was given to us to do in Got Focus but this did not work
IDnumber = Left(Firstname, 3) + Left(Lastname, 2) + Trim(Str(DMax("right(IDnumber,4)","Customer tbl")+1))
Please help me![]()