Cumulative sum

H

hals_left

Hi,

Can anyone help with an access report to show the cumalative work
days.
Below is what Im trying to achive, although the SQL is invalid.

Im trying to calculate on-the-fly a sum for each record based on the
records before that appear in the results - if that makes sense!

Thanks
hals_left

SELECT DueDate as foo, WorkDays, (SELECT Sum(WorkDays) as
CumulativeDays FROM Mods WHERE DuesDate <=foo) FROM Mods


Due Date WorkDays Cumulative Days
31/08/04 12 12
30/09/04 45 57
31/10/04 60 117
 

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