J
jversiz via AccessMonster.com
Hello,
I am trying to make the DSum work for me, but I am not an expert. I have
read many posts and still cannot get the DSum to show what I want.
I have a table (tblQty) that has 4 fields: Item, Whse, Week, and Quantity.
I am trying to create a running total field by week, grouped by item,
warehouse, and week (as shown below)
Item Whse Week Qty RunningTotal
123 A 1 10 10
123 B 1 5 5
123 A 2 5 15
123 B 2 20 25
456 A 1 7 7
456 B 1 6 6
456 A 2 5 12
456 B 2 3 9
Here is what I have so far...
RunningTotal: DSum("Qty","tblQty","[Item] = Item AND [Whse] = Whse AND [Week]
<= Week")
Instead of a running total, I get a total of everything in the table, which
is 61 in my example above.
Any help would be greatly appreciated!
Best Regards,
James C.
I am trying to make the DSum work for me, but I am not an expert. I have
read many posts and still cannot get the DSum to show what I want.
I have a table (tblQty) that has 4 fields: Item, Whse, Week, and Quantity.
I am trying to create a running total field by week, grouped by item,
warehouse, and week (as shown below)
Item Whse Week Qty RunningTotal
123 A 1 10 10
123 B 1 5 5
123 A 2 5 15
123 B 2 20 25
456 A 1 7 7
456 B 1 6 6
456 A 2 5 12
456 B 2 3 9
Here is what I have so far...
RunningTotal: DSum("Qty","tblQty","[Item] = Item AND [Whse] = Whse AND [Week]
<= Week")
Instead of a running total, I get a total of everything in the table, which
is 61 in my example above.
Any help would be greatly appreciated!
Best Regards,
James C.