peterkp1988
New member
- Local time
- Today, 02:33
- Joined
- Feb 15, 2023
- Messages
- 1
I'm trying to create a database for an invoicing system. Sometimes a job is quoted for before being carried out. As not all jobs are quoted for first and not all quotes are carried out, I have this as two separate tables.
Can anyone suggest how I can use VBA to create a button to convert a quote into an invoice.
Data setup:
CustID relates back to a table with customer details, dates will automatically be today's date at time of creating the record. "Items" tables allows for multiple items to be quoted and invoiced within a single quote or invoice. Each item needs to be converted. "Paid" will automatically be yes/no field that defaults as "no".
Once a quote has been converted into a new invoice, the invoice number will be used to 1) state that the quote was converted to invoice and 2) link the quote to the created invoice (for ease of navigating)
This will all be done through forms. Any help will be appreciated.
Can anyone suggest how I can use VBA to create a button to convert a quote into an invoice.
Data setup:
Table Quote -QuoteID -CustID -QuoteDate -JobAddress -Tipping -Invoice | Table QuoteItems -QuoteID -Description -Materials -Labour |
Table Invoice -InvID -CustID -InvDate -Job Address -Tipping -Paid | Table InvoiceItems -InvID -Description -Materials -Labour |
Once a quote has been converted into a new invoice, the invoice number will be used to 1) state that the quote was converted to invoice and 2) link the quote to the created invoice (for ease of navigating)
This will all be done through forms. Any help will be appreciated.