Hi, I'm trying to write a query that will return to me running totals and subtotals. I have the running totals working ok but the subtotals are giving me a problem.
Below is an illustration of what I mean:
Does this make sense?
The running proj hours works fine but for the the employee total hours it doesn't reset for each employee so it turns out to be a running total as well.
Does anyone know what I'm trying to do? I don't know if I've been as clear as I need to be. Any helpful feedback would be greatly appreciated.
VB Rookie
Below is an illustration of what I mean:
Code:
project proj hours employee emp hours emp totals
------- ---------- -------- --------- ----------
skyler 10 john 2 2
skyler 10 becky 4 8
skyler 10 becky 4 8
quasar 3 alissa 1 1.5
quasar 3 alissa .5 1.5
quasar 3 brian 1.5 1.5
Does this make sense?
The running proj hours works fine but for the the employee total hours it doesn't reset for each employee so it turns out to be a running total as well.
Does anyone know what I'm trying to do? I don't know if I've been as clear as I need to be. Any helpful feedback would be greatly appreciated.
VB Rookie