integritycare
Technical User
Hi Guys,
Need some ideas for this please
In the work database an invoice is raised by a form. The invoice number is recorded;
The issue is when one person is invoicing then all is well. But we need to have two people invoicing at the same time.
I have noticed that the invoice number is only saved to the table when the invoice is completed and the user 'saves' the invoice.
The command on the Save Button is this;
How can I get the invoice number to be saved when the invoice form is opened. This way 2 users can input accounts to two separate invoices.
Many thanks,
Integrity
Need some ideas for this please
In the work database an invoice is raised by a form. The invoice number is recorded;
Code:
Private Sub Form_Current()
Me.InvoiceNumber = Nz(DMax("InvoiceNumber", "Accounts08"), 0) + 1
End Sub
The issue is when one person is invoicing then all is well. But we need to have two people invoicing at the same time.
I have noticed that the invoice number is only saved to the table when the invoice is completed and the user 'saves' the invoice.
The command on the Save Button is this;
Code:
Private Sub Record_Click()
Access.Application.DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
End Sub
How can I get the invoice number to be saved when the invoice form is opened. This way 2 users can input accounts to two separate invoices.
Many thanks,
Integrity