I am creating my own autonumber via code
look at thread705-1257165
The issue that I have is, this is a multi user environment and twice already 2 users ran the code exactly at the same time and got the same number. What can I do, to avoid that from happening?
Code:
BatchNo = Nz(DMax("BatchNo", "POS"), 0) + 1
look at thread705-1257165
The issue that I have is, this is a multi user environment and twice already 2 users ran the code exactly at the same time and got the same number. What can I do, to avoid that from happening?