S
Silvio
I have a query called qryCharges. One of the colums is called ChargeHours and
another is called TradeID
The query is using a GroupBy O would like to create a third column that will
sum ChargeHours only for the record where the TradeID is = 1. I have tried
several syntax without success (rememebr that I am using GroupBy as well) How
can I accomplish this?
This is what I ave but the total are wrong:
SELECT DISTINCTROW qryCharges.ProjNumber, qryCharges.ChargeHours,
DSum("ChargeHours","qrycharges",[TradeID]=1) AS Admin
FROM qryCharges
GROUP BY qryCharges.ProjNumber, qryCharges.ChargeHours,
DSum("ChargeHours","qrycharges",[TradeID]=1);
another is called TradeID
The query is using a GroupBy O would like to create a third column that will
sum ChargeHours only for the record where the TradeID is = 1. I have tried
several syntax without success (rememebr that I am using GroupBy as well) How
can I accomplish this?
This is what I ave but the total are wrong:
SELECT DISTINCTROW qryCharges.ProjNumber, qryCharges.ChargeHours,
DSum("ChargeHours","qrycharges",[TradeID]=1) AS Admin
FROM qryCharges
GROUP BY qryCharges.ProjNumber, qryCharges.ChargeHours,
DSum("ChargeHours","qrycharges",[TradeID]=1);