Hi,
I'm not sure what's wrong...
I'm trying to replace a null value with $0.00 for the second field in a query. My first try at the SELECT stmt did not contain any solution for a NULL value. The result was that it skipped the record. I need it to show 0.00 because the field is used in another calculated field.
My SQL:
SELECT tblRecovery.CustID, IF((Sum([tblRecovery.RecAmt]) IS NULL, 0.00, (Sum([tblRecovery.RecAmt]))) AS SumOfRecAmt
FROM tblRecovery
GROUP BY tblRecovery.CustID;
This returns
Syntax error (missing operator) in query expression 'IF(( etc.
After clicking "OK", access highlights AS in the statement.
I'm not sure how to deal with the NULL value or fix the error??
I appreciate your help...
NLR
I'm not sure what's wrong...
I'm trying to replace a null value with $0.00 for the second field in a query. My first try at the SELECT stmt did not contain any solution for a NULL value. The result was that it skipped the record. I need it to show 0.00 because the field is used in another calculated field.
My SQL:
SELECT tblRecovery.CustID, IF((Sum([tblRecovery.RecAmt]) IS NULL, 0.00, (Sum([tblRecovery.RecAmt]))) AS SumOfRecAmt
FROM tblRecovery
GROUP BY tblRecovery.CustID;
This returns
Syntax error (missing operator) in query expression 'IF(( etc.
After clicking "OK", access highlights AS in the statement.
I'm not sure how to deal with the NULL value or fix the error??
I appreciate your help...
NLR
