Ok I have a question and have been trying to figure out how to do this query for days but come up with incorrect results every time. The reason I come up with the wrong results is because when I open my (frm_ShiftDay) it has a subform (frm_ShiftMachinesSubform) which on that subform I enter the employees name (EmployeeID) and how may hours worked (HrsWorked) and a few other bits of data then on that there is a subform (frm_MachineOutputSubform) which I would enter what
products (ProductID) and is net that it produced (NetProduct) for that employee which ran in the hours worked. Now here is where the query is calculating incorectly, Lets say Mitch worked 10hrs and had three productsID or products he ran then if I ran a query to sum (HrsWorked) for mitch it would say he worked 30hrs which it should
be only 10 hours he ran 3 product.
I have a sample DB from my original that I added some information in and here is the criteria:
Date start: 1/1/14
Date End: 4/6/14
Employee: 24
What I wanted it to do was give me the product name, How many times it was ran, sum of NetProduct for each product,
and production average (Which this is the issue).
With the criteria above the results should be for the [highlight #FCE94F]TEST query I made:[/highlight]
SAMPLE DB DIRECT DL FROM MY ONEDRIVE
Thanks,
SoggyCashew.....
products (ProductID) and is net that it produced (NetProduct) for that employee which ran in the hours worked. Now here is where the query is calculating incorectly, Lets say Mitch worked 10hrs and had three productsID or products he ran then if I ran a query to sum (HrsWorked) for mitch it would say he worked 30hrs which it should
be only 10 hours he ran 3 product.
I have a sample DB from my original that I added some information in and here is the criteria:
Date start: 1/1/14
Date End: 4/6/14
Employee: 24
What I wanted it to do was give me the product name, How many times it was ran, sum of NetProduct for each product,
and production average (Which this is the issue).
With the criteria above the results should be for the [highlight #FCE94F]TEST query I made:[/highlight]
Code:
Product: B4 NB 5/8" CountOfProduct: 3 SumOfNetProduct: 55000 ProductionAverage: 44897.959
Product: B2 CountOfProduct: 3 SumOfNetProduct: 75200 ProductionAverage: 39064.935
Product: B1 Superwide CountOfProduct: 4 SumOfNetProduct: 161860 ProductionAverage: 83218.508
SAMPLE DB DIRECT DL FROM MY ONEDRIVE
Thanks,
SoggyCashew.....