![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would appreciate help with a Dsum Problem please. I want to calculate a Grand Total from a series of subtotals but don't seem to have understood the Dsum Function properly. I've used the following in a query SELECT [RawMaterials].[Item], [RawMaterials].[UnitCost],[RawMaterials].[AmountUsed], [RawMaterials].[UnitCost]*[RawMaterials].[AmountUsed] AS TotalCost, Dsum([TtalCost],"RawMaterials Query") AS GrandTotal FROM RawMaterials; and produce the following numbers in the GrandTotal Column which don't make sense to me. Could anyone explain what's happening please and how to produce a Grand Total? Item UnitCost AmountUsed TotalCost Grand Total A 0.1 6 0.6 3 B 0.2 5 1 5 C 0.15 10 1.5 7.5 D 0.5 1 0.5 2.5 E 0.7 2 1.4 7 Thankyou for your time Stuart |
#3
| |||
| |||
|
|
Hi: Please tell me what you want to see. I don't believe that you can get what I think you want with this method. Just sow me the output as you think it ought to be and we can go from there to figure out how to do it. If you want a running total, this isn't going to do it. Good luck. Ira Solomon On Sat, 22 Jul 2006 13:59:36 +0100, "chps" <chps (AT) chps (DOT) karoo.co.uk wrote: I would appreciate help with a Dsum Problem please. I want to calculate a Grand Total from a series of subtotals but don't seem to have understood the Dsum Function properly. I've used the following in a query SELECT [RawMaterials].[Item], [RawMaterials].[UnitCost],[RawMaterials].[AmountUsed], [RawMaterials].[UnitCost]*[RawMaterials].[AmountUsed] AS TotalCost, Dsum([TtalCost],"RawMaterials Query") AS GrandTotal FROM RawMaterials; and produce the following numbers in the GrandTotal Column which don't make sense to me. Could anyone explain what's happening please and how to produce a Grand Total? Item UnitCost AmountUsed TotalCost Grand Total A 0.1 6 0.6 3 B 0.2 5 1 5 C 0.15 10 1.5 7.5 D 0.5 1 0.5 2.5 E 0.7 2 1.4 7 Thankyou for your time Stuart |
![]() |
| Thread Tools | |
| Display Modes | |
| |