I need to create unique account numbers for my Access database (2010). The numbers should be in the format year + serial number, for example. 20101447 for the 1447th invoice of 2010. I looked around for a while, but many of Googleβs results suggest using auto-type, and Iβm pretty sure that this is not a very reliable way to do this. (because autonumbers are only guaranteed to be unique, nothing more)
Currently, the database will not be used by several users at the same time, but I do not think that you are going with a completely hacked solution.
EDIT I also found this website which discusses consecutive numbering using the DMax function. Scenario # 2 is exactly what I had in mind, and I think it is good enough for my use case. I will ensure that the user is notified in a rare (for me) event that the database has been changed before fully entering and saving a new account.
EDIT2 FYI: The numbering scheme is not a tax requirement, but simply our custom numbering. I did not want to change without a good reason.
source share