Hi there,
NeoPa and mccarthy have helped me with some table design advice previously, but I made a bit of a boo boo. It is with regards to invoicing for a job.
tblJobs
tblInvoices
Now, I have a form called frmJobs that allows me to display everything related to a job e.g.
JobID
JobRef
...
EmployeeID
...
ContractID
ClientContact
...
VenueID
,,,
etc - now the problem I initially had was my query - i had a qryJobs on my frmJobs and a qryInvoices (which extracted job information) as a subform on my frmJobs, but when I tried to add the invoice details e.g. invoice date etc, it would ask me for the JobID etc - but I wanted this information to fill automatically based on the job JUST created on the job form - but couldnt work out how.
SO, me being me, I decided to remove the foreign job info from the invoices table and put the InvoiceID in the jobs table as a lookup and added the remaining invoice info to my qryJobs (which populates the frmJobs)
*are u still with me - even I'm confused!*
Now I have somehow messed up everything - my form has locked and wont allow me to enter any new records let alone check if the invoice bit works, none of my expressions work e.g. calculations/displaying first name and surname together etc.
Is there any way I can correct this? Was it a good idea to put an InvoiceID in the tblJobs? I want to be able to enter the job details as planned, then when the job has finished, enter the invoice number, date, payment terms etc and calculate the totals...
Sorry, I know this is a bit heavy for xmas eve!
Any help would be appreciated and Merry Christmas to you all!
NeoPa and mccarthy have helped me with some table design advice previously, but I made a bit of a boo boo. It is with regards to invoicing for a job.
tblJobs
tblInvoices
Now, I have a form called frmJobs that allows me to display everything related to a job e.g.
JobID
JobRef
...
EmployeeID
...
ContractID
ClientContact
...
VenueID
,,,
etc - now the problem I initially had was my query - i had a qryJobs on my frmJobs and a qryInvoices (which extracted job information) as a subform on my frmJobs, but when I tried to add the invoice details e.g. invoice date etc, it would ask me for the JobID etc - but I wanted this information to fill automatically based on the job JUST created on the job form - but couldnt work out how.
SO, me being me, I decided to remove the foreign job info from the invoices table and put the InvoiceID in the jobs table as a lookup and added the remaining invoice info to my qryJobs (which populates the frmJobs)
*are u still with me - even I'm confused!*
Now I have somehow messed up everything - my form has locked and wont allow me to enter any new records let alone check if the invoice bit works, none of my expressions work e.g. calculations/displaying first name and surname together etc.
Is there any way I can correct this? Was it a good idea to put an InvoiceID in the tblJobs? I want to be able to enter the job details as planned, then when the job has finished, enter the invoice number, date, payment terms etc and calculate the totals...
Sorry, I know this is a bit heavy for xmas eve!
Any help would be appreciated and Merry Christmas to you all!
Comment