Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Acc2007 can't get DSUM to work in a query

Status
Not open for further replies.

DougP

MIS
Joined
Dec 13, 1999
Messages
5,985
Location
US
I got the example

here is my full SQL
SELECT test.WareHouse AS WarehouseAlias, Sum(test.Qty) AS SumOfQty, DSum("WareHouse","Test","[Qty]<=" & [WarehouseAlias]) AS RunTot
FROM test
GROUP BY test.WareHouse;

I don't have the Northwind db for 2007
I have another PC with Acc2002 and tried the example on Northwind in 2002 and it works perfect.


DougP
[r2d2] < I love mine
 
Perhaps this ?
Code:
SELECT WareHouse AS WarehouseAlias, Sum(Qty) AS SumOfQty, DSum("WareHouse","Test","[Qty]<=" & [WareHouse]) AS RunTot
FROM test
GROUP BY WareHouse, DSum("WareHouse","Test","[Qty]<=" & [WareHouse])

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top