i managed to get the case bit in it was the
HAVING (((Sum(IIf([AdjInd]=2,-[ExVat],[ExVat])))<>0))
i couldnt word right ? i wasnt sure about the brackets
I am trying to convert a Access Qry to SQL
could anyone help?
SELECT QryAdjCostEXVat.OrderNo, Sum(IIf([AdjInd]=2,-[ExVat],[ExVat])) AS Val
FROM QryAdjCostEXVat
GROUP BY QryAdjCostEXVat.OrderNo
HAVING (((Sum(IIf([AdjInd]=2,-[ExVat],[ExVat])))<>0))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.