Total values for specific records

G

Guest

I have a form which includes two subforms. The main form includes basic
employee details. The first subform lists (in tabular form) the jobs that the
selected employee does (basic information like job number, client name). The
second subform shows detailed information of hours worked and monies paid for
a particular job selected in the first subform. I have totalled the number of
hours worked on a particular job but I would also like to total hours wrked
on all jobs for a particular employee.

How do I go about this?

Thanks

David
 
G

Guest

Hi, David.

Use a Totals query, grouping by EmpID and JobID, and summing Hours.
Something like:

SELECT Hours.EmpID, Hours.JobID, Sum(Hours.Hours) AS SumOfHours
FROM Hours
GROUP BY Hours.EmpID, Hours.JobID;

Sprinks
 

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