J
John Egan
I have a database setup with various tables and forms to store data for a
small autoelectrical business. I have Three tables for Job information.
JobCard, JobDetails and VehicleDetails. JobCard - one to many - JobDetails.
VehicleDetails - one to many - JobCard.
I have a form setup to enter all data for each job into these tables.
My problem is figuring the best way to get all this data out again to write
an Invoice. Each invoice can have more than one job and I need to link the
Pk in the invoice table to a fk in JobCard.
Any suggestions on how to select one or more Jobcards and print to an
invoice.
The following are the tables
Any help greatly appreciated
John
tblInvoice
pkInvoiceID(autonumber),
InvoiceNumber (incremetal number for invoice).
InvoiceDate
OrderNumber
tblJobCard
pkJobCardID(autonumber)
JobNumber(incremental number for job)
JobDate
JobDetails
TimeOnJob
fkCustomerID(link to pkCustomerDetailID)
fkInvoiceID(link to pkInvoiceID)
fkVehicleDetailID(link to pkVehicleDetailID)
tblJobDetail
pkJobDetailID(autonumber)
Quantity
Discount
fkProductID(link to part used Product table)
fkJobCardID(link to pkJobCardID)
small autoelectrical business. I have Three tables for Job information.
JobCard, JobDetails and VehicleDetails. JobCard - one to many - JobDetails.
VehicleDetails - one to many - JobCard.
I have a form setup to enter all data for each job into these tables.
My problem is figuring the best way to get all this data out again to write
an Invoice. Each invoice can have more than one job and I need to link the
Pk in the invoice table to a fk in JobCard.
Any suggestions on how to select one or more Jobcards and print to an
invoice.
The following are the tables
Any help greatly appreciated
John
tblInvoice
pkInvoiceID(autonumber),
InvoiceNumber (incremetal number for invoice).
InvoiceDate
OrderNumber
tblJobCard
pkJobCardID(autonumber)
JobNumber(incremental number for job)
JobDate
JobDetails
TimeOnJob
fkCustomerID(link to pkCustomerDetailID)
fkInvoiceID(link to pkInvoiceID)
fkVehicleDetailID(link to pkVehicleDetailID)
tblJobDetail
pkJobDetailID(autonumber)
Quantity
Discount
fkProductID(link to part used Product table)
fkJobCardID(link to pkJobCardID)