M
Mike Green
Hi All
I am looking for some guidance if someone would be so kind as to indulge
with me for a moment.
I am trying to create a Db to record Job cards, Work carried out, Time taken
and Parts used, along with the total cost for a completed job card. I have
the following tables
Tbl_JobCard, Fd_JobID, FdDateOpened, FdJobState, Fd_DateClosed, FdPitchNo...
Tbl_Work, Fd_WorkID, Fd_JobID, Fd_Time, Fd_Work, Fd_Cost, Fd_WVAT...
Tbl_Parts, Fd_PartID, Fd_JobID, Fd_PartName, Fd_PartQty, Fd_PartCost,
FdPVAT...
As you can see I have a Job Card that can have many Jobs(work) and many
Parts.
From these tables I need to produce a report that shows the total cost of a
complete job card.
Here is where I have come unstuck.
Because there can be job cards that only have many work items but no parts I
cannot get a reports or a query to work when no parts exist for that job
card.
I have to use a query against the Tbl_Work and against the Tbl_Parts to work
out when a Job takes more that 1 hour and the same for the Tbl_Parts when
more than one of each part is used. I have the added problem that depending
on the actual pitch the job card is for depends on if VAT is chargeable or
not (add in some instances there is a mixture of chargeable and non
chargeable items on the same job card).
I have everything working fine apart from the fact that if there are no
parts used and work carried out (or viseversa) I cannot get the calculations
to work as there is no data to return even a null value (or is there a way?)
I have tried using a query to create amount of VAT, total cost, VATTotal and
NonVAT for Fd_JobID from Tbl_Work and one from Tbl_Parts. My idea being
that I was going to create a Tbl_Invoice to store the info for the completed
job card, unfortunately things go horribly wrong and Access errors saying
the source query must be updatable (I tried to use the query mentioned above
along with an update query to update the Tbl_Invoice.
I am just stuck now and I have been for the last 5 hours. I have some
reasonable Access skill although I will admit to being very rusty at the
moment.
Any help and guidance will be greatly appreciated.
Mike Green
I am looking for some guidance if someone would be so kind as to indulge
with me for a moment.
I am trying to create a Db to record Job cards, Work carried out, Time taken
and Parts used, along with the total cost for a completed job card. I have
the following tables
Tbl_JobCard, Fd_JobID, FdDateOpened, FdJobState, Fd_DateClosed, FdPitchNo...
Tbl_Work, Fd_WorkID, Fd_JobID, Fd_Time, Fd_Work, Fd_Cost, Fd_WVAT...
Tbl_Parts, Fd_PartID, Fd_JobID, Fd_PartName, Fd_PartQty, Fd_PartCost,
FdPVAT...
As you can see I have a Job Card that can have many Jobs(work) and many
Parts.
From these tables I need to produce a report that shows the total cost of a
complete job card.
Here is where I have come unstuck.
Because there can be job cards that only have many work items but no parts I
cannot get a reports or a query to work when no parts exist for that job
card.
I have to use a query against the Tbl_Work and against the Tbl_Parts to work
out when a Job takes more that 1 hour and the same for the Tbl_Parts when
more than one of each part is used. I have the added problem that depending
on the actual pitch the job card is for depends on if VAT is chargeable or
not (add in some instances there is a mixture of chargeable and non
chargeable items on the same job card).
I have everything working fine apart from the fact that if there are no
parts used and work carried out (or viseversa) I cannot get the calculations
to work as there is no data to return even a null value (or is there a way?)
I have tried using a query to create amount of VAT, total cost, VATTotal and
NonVAT for Fd_JobID from Tbl_Work and one from Tbl_Parts. My idea being
that I was going to create a Tbl_Invoice to store the info for the completed
job card, unfortunately things go horribly wrong and Access errors saying
the source query must be updatable (I tried to use the query mentioned above
along with an update query to update the Tbl_Invoice.
I am just stuck now and I have been for the last 5 hours. I have some
reasonable Access skill although I will admit to being very rusty at the
moment.
Any help and guidance will be greatly appreciated.
Mike Green