C
Curtis
I'm writing a DSUM expression with the hope of calculating a running total
with each record. My current DSUM expression is providing a running total
based on the OrderID rather than each line. Here's what I'm currently
getting with the DSUM expression listed for the table named "Order Details":
Running Total: (DSum("[Order Details].[UnitPrice]*[Order
Details].[Qty]","Order Details","[OrderID] <= " & [Order Details].[OrderID]))
OrderID Qty UnitPrice TotalLine Running Total
10248 12 14 168 474
10248 10 9.80 98 474
10248 2 17.00 34 474
10248 5 34.80 174 474
10249 9 18.60 167.40 2337.4
10249 40 42.40 1696 2337.4
Instead, I need the DSUM expression to give a running total by line (not
grouped by OrderID) like:
Running Total
168
266
300
474
641
2337.4
2414.4
How do I modify the criteria to accomplish this?
Thanks.
with each record. My current DSUM expression is providing a running total
based on the OrderID rather than each line. Here's what I'm currently
getting with the DSUM expression listed for the table named "Order Details":
Running Total: (DSum("[Order Details].[UnitPrice]*[Order
Details].[Qty]","Order Details","[OrderID] <= " & [Order Details].[OrderID]))
OrderID Qty UnitPrice TotalLine Running Total
10248 12 14 168 474
10248 10 9.80 98 474
10248 2 17.00 34 474
10248 5 34.80 174 474
10249 9 18.60 167.40 2337.4
10249 40 42.40 1696 2337.4
Instead, I need the DSUM expression to give a running total by line (not
grouped by OrderID) like:
Running Total
168
266
300
474
641
2337.4
2414.4
How do I modify the criteria to accomplish this?
Thanks.