I need to be able to calculate cumulative totals on groups of data in a query. Specifically I have a list of repair order numbers with associated part numbers required, dates the order was placed and the amount of the part needed for the repair. I need to be able to calculate a running cumulative total of amount required for each group of part numbers sorted by earliest order date to lates order date of the part number. So for part number ABC I need the cumulative running total of amount required, for part number DEF I need the cumulative running total of amount required, etc. with each group of parts sorted by date the order was placed.
Software/Hardware used:
ASKED:
January 24, 2011 1:01 PM
UPDATED:
July 12, 2011 4:02 PM
I did see the running total in the reports, however I need to be able to compare the part required quantity by date to an “on hand” amount to find the exact date that I will run out of parts. I will give your function a try and give feedback. Thank you for your help!
Randym,
Thanks for you answer. I was just wondering how do you determine the order that the records are passed through the function? It doesn’t seem to be done by the sorting as far as I can see. I have it sorted the way that I would want to pass the records through, but it is not using that order and I don’t see the logic. Any help?
Thanks much.
Katie