mcnews said:
can you point me to how to use running sums?
Search VBA Help for RunningSum Property.
Essentially you use a text box with an expression that
results in the value you want to sum. The RunningSum
property is set to indicate that you want Access to add the
value in each detail (or group header/footer). Then you can
use another text box in a group footer (Over Group) or the
report footer (Over All) with an expression that references
the running sum text box to display the total. This is
especially useful when the value you want to total is so
complex that it requires a user defined function to
calculate. In this kind of situation, the RunningSum text
box could use an expression like:
=MyFunction(fieldA, fieldB)
If the calculation is just a combination of some fields in
the report's record source table/query, you should use a
header/footer text box with an aggregate function (Count,
Sum, etc) instead of a RunningSum text box. E.g. an order
total might be the expression =Sum(Price * Quantity)