Alternatives to DMax when generating custom autonumber

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I have been using a DMax statement in the BeforeUpdate event of a form.
This gives the user an order number with no gaps which they can use. The
problem is that on a couple of occaisions this method has produced duplicate
order numbers. The only way that I think this could have happened is if two
users raise an order at exactly the same - is this correct? Are there any
more reliable alternatives to this method which I should be looking at?

Thanks

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top