PhoenixCouriers
Registered User.
- Local time
- Today, 22:22
- Joined
- Feb 24, 2011
- Messages
- 32
Hi all,
Right here goes,
I have a combobox on my form that lookups data in a query which gives me the last invoice number for the selected customer on then form then enters this number into field on the form called "bookings.invoicenumber"
and if there is no number in the query then this then gives me the dmax+1 from the invoicedetails table
here are the fields
ComboLookup ( combo box ) from tables customers
bookings.invoicenumber
invoicedetails.invoicenumber
query is called LookupLastInvoiceNumber
form is called BookingsForm
many thanks
simon
Right here goes,
I have a combobox on my form that lookups data in a query which gives me the last invoice number for the selected customer on then form then enters this number into field on the form called "bookings.invoicenumber"
and if there is no number in the query then this then gives me the dmax+1 from the invoicedetails table
here are the fields
ComboLookup ( combo box ) from tables customers
bookings.invoicenumber
invoicedetails.invoicenumber
query is called LookupLastInvoiceNumber
form is called BookingsForm
many thanks
simon