J
Joe Williams
Hello,
Looking to do a running total in a query, whose base table looks like this:
EMPLOYEEID, TRANSACTIONDATE, AMOUNT
1234, 1/1/2009, $50
1234, 1/1/2009, $10
5555, 2/1/2009, $20
5555, 3/1/2009, $25
I would like the resultant query to display the data as follows:
EMPLOYEEID, TRANSACTIONDATE, AMOUNT, RUNNINGTOTAL
1234, 1/1/2009, $50, $50
1234, 1/1/2009, $10, $60
5555, 2/1/2009, $20, $20
5555, 3/1/2009, $25, $45
So basically the running total resets when the employeeID changes. I have
tried various DSUM functions but have not had any success thus far. Any help
you can provide would be appreciated. Thanks in advance.
Joe
Looking to do a running total in a query, whose base table looks like this:
EMPLOYEEID, TRANSACTIONDATE, AMOUNT
1234, 1/1/2009, $50
1234, 1/1/2009, $10
5555, 2/1/2009, $20
5555, 3/1/2009, $25
I would like the resultant query to display the data as follows:
EMPLOYEEID, TRANSACTIONDATE, AMOUNT, RUNNINGTOTAL
1234, 1/1/2009, $50, $50
1234, 1/1/2009, $10, $60
5555, 2/1/2009, $20, $20
5555, 3/1/2009, $25, $45
So basically the running total resets when the employeeID changes. I have
tried various DSUM functions but have not had any success thus far. Any help
you can provide would be appreciated. Thanks in advance.
Joe