I'm trying to do totals query where it adds the prices in the inclVAT. This works but soon as i have a criteria between certain dates i get this error message...
"You tried to execute a query that does not include the specified expression tblpreorder.reqdate Between #1/1/2002 and #31/12/2002# as part of the aggregate funciton"
SELECT tblPreOrder.FinanceCode, Sum(tblPreOrder.IncLVAT) AS SumOfIncLVAT
FROM tblPreOrder
GROUP BY tblPreOrder.FinanceCode
HAVING (((tblPreOrder.ReqDate) Between #1/1/2002# And #31/12/2002#));
Is there anyway of solving this one or trying to do it a different way???
"You tried to execute a query that does not include the specified expression tblpreorder.reqdate Between #1/1/2002 and #31/12/2002# as part of the aggregate funciton"
SELECT tblPreOrder.FinanceCode, Sum(tblPreOrder.IncLVAT) AS SumOfIncLVAT
FROM tblPreOrder
GROUP BY tblPreOrder.FinanceCode
HAVING (((tblPreOrder.ReqDate) Between #1/1/2002# And #31/12/2002#));
Is there anyway of solving this one or trying to do it a different way???