Generating Order Numbers

  • Thread starter Thread starter Nick Bradbury
  • Start date Start date
N

Nick Bradbury

Hi

I want Access to automatically assign an incremented Order No each time a
new record is entered, I am currently using AutoNumber but ideally I want to
move away from this. Does a function exist in vba for this task.

Thanks

Nick
 
Nick Bradbury said:
Hi

I want Access to automatically assign an incremented Order No each time a
new record is entered, I am currently using AutoNumber but ideally I want
to move away from this. Does a function exist in vba for this task.

No code needed. Just set this as your text box's default value:

Nz(DMax("MyField", "qryMyQuery")) + 1

Regards,
Keith.
www.keithwilby.com
 

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