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
 
Back
Top