I have a query where I would like to use DSUM to get the total qty of each item under various reasons shown in "reason" field.
Though the query gives a result, answers are absurd.
Following is the sql--
SELECT DISTINCTROW Table8.item, DSum("[qty]","table8","[reason] = 'loan in'"
AS Expr1, Table8.part, DSum("[qty]","table8","[reason] = 'loan out'"
AS Exp2, DSum("[qty]","table8","[reason] = 'direct'"
AS Expr3
FROM Table8
GROUP BY Table8.item, Table8.part;
I have used Dsum in form/report so far but not in query.
Any help will be appreciated
Though the query gives a result, answers are absurd.
Following is the sql--
SELECT DISTINCTROW Table8.item, DSum("[qty]","table8","[reason] = 'loan in'"
FROM Table8
GROUP BY Table8.item, Table8.part;
I have used Dsum in form/report so far but not in query.
Any help will be appreciated