F
forcefield via AccessMonster.com
HI everyone
Can someone please correct my running sum?
I have a query1 with the following fields: Item, Description, FQty
When I run query2
SELECT Query1.Item, Query1.Description, Query1.FQty, DSum("FQty","Query1",
"Item & Description= '" & [Item] & [Description] & "'") AS RunSum
FROM Query1
ORDER BY Query1.Item, Query1.Description;
The result for Query2 was
Item Description Qty RunSum
Coloring Bottles 16 16
Flour Bags 12 22
Flour Bags 10 22
Oil Bottles 14 40
Oil Bottles 14 40
Oil Bottles 12 40
Peanut Bags 5 5
Sauce Bottles 5 5
What I would like to see is
Query2
Item Description Qty RunSum
Coloring Bottles 16 16
Flour Bags 12 12
Flour Bags 10 22
Oil Bottles 14 14
Oil Bottles 14 28
Oil Bottles 12 40
Peanut Bags 5 5
Sauce Bottles 5 5
Thanks for your help
Can someone please correct my running sum?
I have a query1 with the following fields: Item, Description, FQty
When I run query2
SELECT Query1.Item, Query1.Description, Query1.FQty, DSum("FQty","Query1",
"Item & Description= '" & [Item] & [Description] & "'") AS RunSum
FROM Query1
ORDER BY Query1.Item, Query1.Description;
The result for Query2 was
Item Description Qty RunSum
Coloring Bottles 16 16
Flour Bags 12 22
Flour Bags 10 22
Oil Bottles 14 40
Oil Bottles 14 40
Oil Bottles 12 40
Peanut Bags 5 5
Sauce Bottles 5 5
What I would like to see is
Query2
Item Description Qty RunSum
Coloring Bottles 16 16
Flour Bags 12 12
Flour Bags 10 22
Oil Bottles 14 14
Oil Bottles 14 28
Oil Bottles 12 40
Peanut Bags 5 5
Sauce Bottles 5 5
Thanks for your help