how to auto serial No start from 1

rehanemis

Registered User.
Local time
Today, 17:40
Joined
Apr 7, 2014
Messages
195
Hi,

I am working in ms access database form. I have a form with detail section. In detail section i would like to make sr.no field auto increase each time new quotation is created. Using AutoNumber didn't work because because it doesn't start the serial number from 1 for each new quotation.

Snap shot is also attached.

I am looking for kind suggestions in this regards..
Thanks
 

Attachments

  • AutoSerialNumbering.jpg
    AutoSerialNumbering.jpg
    96.2 KB · Views: 68
I would suggest using Nz(DCount(),0)+1 in the subforms Before Update event. You would need to use the field that links the two forms in the criteria argument of DCount().
 

Users who are viewing this thread

Back
Top Bottom