neillovell
Programmer
Hi,
I have several reports, one for each employee, that details which projects they have been working on and for how many hours.
I also have the employees' wages per hour in a table.
What I'd like to do is gather up all this data and display it in a report, so the reader can see how many hours in total are spent on what project, and how much it has cost the company.
So EmpA works on Proj#1 for 10 hours. His wage is £5 per hour, sothe report displays
PROJECT HOURS COST
Proj#1 10 £50
and is EmpB works on Proj#1 also, for the same amount of time and for the same money, you get:
PROJECT HOURS COST
Proj#1 20 £100
Now the question is how to achieve this - should I have a query for each employee that checks their personal cost per project and THEN add them in a report, or forgo that and go stright to adding them all together? What if new employees join the company, I can hardly go and change all the VBA code to accomodate them, can it be done automatically?
I have several reports, one for each employee, that details which projects they have been working on and for how many hours.
I also have the employees' wages per hour in a table.
What I'd like to do is gather up all this data and display it in a report, so the reader can see how many hours in total are spent on what project, and how much it has cost the company.
So EmpA works on Proj#1 for 10 hours. His wage is £5 per hour, sothe report displays
PROJECT HOURS COST
Proj#1 10 £50
and is EmpB works on Proj#1 also, for the same amount of time and for the same money, you get:
PROJECT HOURS COST
Proj#1 20 £100
Now the question is how to achieve this - should I have a query for each employee that checks their personal cost per project and THEN add them in a report, or forgo that and go stright to adding them all together? What if new employees join the company, I can hardly go and change all the VBA code to accomodate them, can it be done automatically?