How to code an Invouce Number

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

I have a bad habit of using "autonumber" too much and in the wrong places.

SO I need some suggestions for creating an invoice numbering system that
increments by one with each new order but does not increment if the order
was not completed.
And maybe some way to show as "voided" if an order was cancled.

Thanks much,

dave
 
You can just use a DMax() in the BeforeInsert event and in the BeforeUpdate
event IF Me.NewRecord.
 

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