Hi to all,
What is the best way to obtain an invoice number for each invoice?
These numbers will appear when printing the invoice.
(Invoice numbers are supposed to be unique and serial)
Khalil
Hi to all,
What is the best way to obtain an invoice number for each invoice?
These numbers will appear when printing the invoice.
(Invoice numbers are supposed to be unique and serial)
Khalil
investigate the DMax+1 concept
newInvNum=DMax("invnum","tblInvoices")+1
If being generated at the time of printing, you need to consider whether you are printing one invoice at a time or multiple invoices. And what happens on a reprint? - either for a copy or in the event the printer fails and you need to start again
Hi Khalil (Ajax beat me to it)
The best method is use the following:-
In the Before Update of the Form
Me.InvoiceNr = Nz(DMax("InvoiceNr","tblCustomerOrderdates"),0) + 1
You can PM me for help. Good Read https://docs.microsoft.com/en-gb/off...on-description
To attach file: https://www.accessforums.net/showthread.php?t=70301
Hi,
Thank you both.
Got it