Hell all.
I am having an issue with an expression in a query.
What I am trying to do is to sum [Account Balance Total Amount] IF the [External Status Code] is null.
When I use Expr1: Sum(IIf([External Status Code]=" ",[Account Balance Total Amount],0)) I get a zero result
When I use Expr1: Sum(IIf([External Status Code]IsNull,[Account Balance Total Amount],0)) I get Invalid Syntax
When I use Expr1: Sum(IIf([External Status Code],IsNull,[Account Balance Total Amount],0)) I get Wrong Number of Arguments
Thanks for your help.
I am having an issue with an expression in a query.
What I am trying to do is to sum [Account Balance Total Amount] IF the [External Status Code] is null.
When I use Expr1: Sum(IIf([External Status Code]=" ",[Account Balance Total Amount],0)) I get a zero result
When I use Expr1: Sum(IIf([External Status Code]IsNull,[Account Balance Total Amount],0)) I get Invalid Syntax
When I use Expr1: Sum(IIf([External Status Code],IsNull,[Account Balance Total Amount],0)) I get Wrong Number of Arguments
Thanks for your help.