I have a report, that comes from a SQL query, one of those monsters that is about 30 fields wide. I have 5 levels of grouping,
Company Rep
Company
Subcontractor
Site
House
Designer
The house has a number of hours that it should take, and how long it actually did take. Typically there is only one designer, but there are exceptions. The report works fine until two people work on the same house< then we get double counting.. i.e.
Plot 1 | 5 hours assigned
[tab]Bob | 3 hours worked
Plot 2 | 3 hours assigned
[tab]Harold | 4 hours worked
Plot 3 | 2 hours assigned
[tab]Bob | 1 hour worked
[tab]Harold | 1 hour worked
totals
[tab]12 hours assigned
[tab]9 hours worked
In reality, only 10 hours were assigned, but because of how the grouping is working, Access appears to be summing up each row to get to the assigned hours. This is correct for the worked hours, but not for assigned. How can I count each item only once?
Company Rep
Company
Subcontractor
Site
House
Designer
The house has a number of hours that it should take, and how long it actually did take. Typically there is only one designer, but there are exceptions. The report works fine until two people work on the same house< then we get double counting.. i.e.
Plot 1 | 5 hours assigned
[tab]Bob | 3 hours worked
Plot 2 | 3 hours assigned
[tab]Harold | 4 hours worked
Plot 3 | 2 hours assigned
[tab]Bob | 1 hour worked
[tab]Harold | 1 hour worked
totals
[tab]12 hours assigned
[tab]9 hours worked
In reality, only 10 hours were assigned, but because of how the grouping is working, Access appears to be summing up each row to get to the assigned hours. This is correct for the worked hours, but not for assigned. How can I count each item only once?