BH
Hi, I'm building a c# application using Visual Studio 2010, and connecting to Access Database. I'm trying to sum up two columns, but when one of the columns does not have any values, it should be considered as 0 (zero). I've tried the below Query in visual studio 2010, but it gives me an error saying "Undefined function 'IfISNull" in expression." Am i suppose to be adding some function in order to use the below code? Is the function suppose to be in Visual Studio or inside the Access database?
SELECT SUM(IfISNull(AmountDebit)) - SUM(IfIsNull(AmountCredit)) AS Expr1 FROM Ledger GROUP BY PropertyID HAVING (PropertyID = ?)
Thank you so much for your help.
Aron