Hello everyone,
I want to generate a unique ID number for a test number field in the format NTN-YY-XXX where YY is the two digit of the year, and XXX is the sequential number. This number reset to 001 each year. For example, the first row generates this year would have the number NTN-12-001, next one would be NTN-12-002 ... Next year, the first number would be NTN-13-001. Would someone kindly show me how to achieve this?
I started with this: "NTN-" & Right$[DatePart("YYYY" , NOW(),2)
but don't know how to but in the auto increment part and has the increment reset.
Thanks,
Al
I want to generate a unique ID number for a test number field in the format NTN-YY-XXX where YY is the two digit of the year, and XXX is the sequential number. This number reset to 001 each year. For example, the first row generates this year would have the number NTN-12-001, next one would be NTN-12-002 ... Next year, the first number would be NTN-13-001. Would someone kindly show me how to achieve this?
I started with this: "NTN-" & Right$[DatePart("YYYY" , NOW(),2)
but don't know how to but in the auto increment part and has the increment reset.
Thanks,
Al
Comment