Question : Very simple sum question

I am trying to create an access DB that does three simple things. 1) keep a list of accounts. 2) keep a list of all the payments they make (credits) 3) keep track of cases for service (start time, end time, what was it).

I need a report that shows the start time, case resolution, case time, and case cost, and then a total cost for that month. The total cost is what I have a problem with. I have a report (see: http://gogetmyfiles.com/screenshots/totalcostserror.png), but I cannot get the total costs to show up.

The report is based on the query below.

How do I get the sum total of all the CaseCosts in the report?
Code Snippet:
1:
2:
3:
4:
5:
SELECT DISTINCTROW Accounts.Rate, Cases.[Start Time], Cases.Resolution, Round(Sum(DateDiff("n",[Start Time],[End Time])/60),2) AS CaseTime, -1*[Rate]*[CaseTime] AS CaseCost, Accounts.Company
FROM [Account Credits] INNER JOIN (Accounts INNER JOIN Cases ON Accounts.ID=Cases.Customer) ON [Account Credits].Account=Accounts.ID
GROUP BY Accounts.Rate, Cases.[Start Time], Cases.Resolution, Accounts.Company, Accounts.Company
HAVING (((Accounts.Company)=[?]))
ORDER BY Accounts.Company;

Answer : Very simple sum question

Ahhh, sorry, didn't saw this - you placed the sum in the page footer, not the report footer! This doesn't work....

To do this place a invisible field "CaseCostSum" with [CaseCost] to the detail and set the "RunningSum" property to true. Reference the field in the Page Footer with =[CaseCostSum]
Random Solutions  
 
programming4us programming4us