R
richard
Hi
I have a database that captures two distinct pieces of information
One table (tblPayWeek) captures the timesheets for employees and costs, this
is captured by employeeID and also by ProjectID, the project being the large
job being worked on.
We also have sub jobs to the large job(Project), and the sales information
is captured here(tblSalesDetails) with an index field called SalesID, along
with (if they record it) the hours the men have worked on a sub job. The
costs for labour, materials are stored in seperate tables using the Field
SalesID as the foreign key link back to tblSalesDetails.
Example of project and sub jobs
Project is working on a tower block of flats
SubJob is the work in a flat within the tower
The tables tblSalesDetails and tblPayWeek do have a foreign key field called
ProjectID in each table.
I have a report (rptSalesJobSummary) which pulls together the sales by
Client, using Subreports for the costs (labour, materials etc). However due
to the lack of info provided by the workers I wish to use the timesheets
information for the labour costs in this report.
The problem occurs when I use the field ProjectID to link the
report(rptSalesJobSummary) and subreport for timsheet labour costs. I am
getting multiple rows for the labour being reported, giving highly inflated
labour costs because of this.
I am unable to use the SalesID field in the table tblPayWeek as the
timesheets do not provide that level of detail.
Can anyone think of a way around my problem with the report(if you can
understand it)
I have a database that captures two distinct pieces of information
One table (tblPayWeek) captures the timesheets for employees and costs, this
is captured by employeeID and also by ProjectID, the project being the large
job being worked on.
We also have sub jobs to the large job(Project), and the sales information
is captured here(tblSalesDetails) with an index field called SalesID, along
with (if they record it) the hours the men have worked on a sub job. The
costs for labour, materials are stored in seperate tables using the Field
SalesID as the foreign key link back to tblSalesDetails.
Example of project and sub jobs
Project is working on a tower block of flats
SubJob is the work in a flat within the tower
The tables tblSalesDetails and tblPayWeek do have a foreign key field called
ProjectID in each table.
I have a report (rptSalesJobSummary) which pulls together the sales by
Client, using Subreports for the costs (labour, materials etc). However due
to the lack of info provided by the workers I wish to use the timesheets
information for the labour costs in this report.
The problem occurs when I use the field ProjectID to link the
report(rptSalesJobSummary) and subreport for timsheet labour costs. I am
getting multiple rows for the labour being reported, giving highly inflated
labour costs because of this.
I am unable to use the SalesID field in the table tblPayWeek as the
timesheets do not provide that level of detail.
Can anyone think of a way around my problem with the report(if you can
understand it)