Query - Sum of like values

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table for reporting problems. The problem and the time spent fixing
it are entered along with the date and the "job number" that the time spent
gets charged to.

I have a query that pulls all problems recorded in the past 7 days and the
time spent on each one. My problem is - I want the results to be grouped by
date and job number and the time spent totaled. Any suggestions?
 
Change the query you have (or base a new query on the
existing query) and set the 'Totals' option to 'On'. Set
the date & JobNo fields to GroupBy and the Time to Sum.
 
Sorry ment to include this:
SELECT MyTable.Date, MyTable.JobNo, Sum
(MyTable.TimeSpent) AS SumOfTimeSpent
FROM MyTable
GROUP BY MyTable.Date, MyTable.JobNo;
 

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

Similar Threads

Excel Sumproduct 0
Monthly Summary 1
Dcount returning no results!!! 0
Combine Duplicates in Query 0
query result in relation with table 4
QUERY DESIGN PROBLEM 1
date range OR ALL parameter query 3
value displayed repeatedly 9

Back
Top