Create a running total of job hours

K

KATHY

I have a database which includes the following info

Date Job # Hours Emp #


As the daily hours per job per emp are have been input, I need to creat a
query that will give the info in a data range (have that) but also will have
a column for Total Job Hours.

Just cant get there. I am sure this is very simple to someone?

Thanks
 
M

Marshall Barton

KATHY said:
I have a database which includes the following info

Date Job # Hours Emp #


As the daily hours per job per emp are have been input, I need to creat a
query that will give the info in a data range (have that) but also will have
a column for Total Job Hours.


Add a calculated field to the query:

RunHours: (SELECT Sum(Hours) FROM table As X WHERE
X.[Job #] = table.[Job #] AND X.[Emp #] = .[Emp #] AND
X.[Date] <= table.[Date])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top