Another newbie question.
I have a form on which I have added a button.
On the On Click event I have attached this code;
Private Sub cmdInvoice_Click()
Me.cmdInvoice = Nz(DMax("[InvoiceNo]", "Booking"), 0) + 1
End Sub
The purpose of which is to create a new invoice number.
cmdInvoice is the name of the button, InvoiceNo is the name of the field in the Booking table.
It is reporting that the object doesn't support this method.
Why am I getting this error please?
Gavin
I have a form on which I have added a button.
On the On Click event I have attached this code;
Private Sub cmdInvoice_Click()
Me.cmdInvoice = Nz(DMax("[InvoiceNo]", "Booking"), 0) + 1
End Sub
The purpose of which is to create a new invoice number.
cmdInvoice is the name of the button, InvoiceNo is the name of the field in the Booking table.
It is reporting that the object doesn't support this method.
Why am I getting this error please?
Gavin
Last edited: