Hi guys, I'm trying to use the following iif statement in a query and it doesn't seem to be working.
VAT: IIf([Charge]="NO","0",([Rate]/100*[Sales]))
"Charge" is a field in one of my tables (also used in the query)
"Rate" is also a field in on the of the tables.
"Sales" however is a calculated field in the query (E.g. "Sales: (calculations)
Maybe this is where I am going wrong? However, even with the 'Charge' field set to "NO" it will display the result "0".
Thanks for any help.
VAT: IIf([Charge]="NO","0",([Rate]/100*[Sales]))
"Charge" is a field in one of my tables (also used in the query)
"Rate" is also a field in on the of the tables.
"Sales" however is a calculated field in the query (E.g. "Sales: (calculations)
Maybe this is where I am going wrong? However, even with the 'Charge' field set to "NO" it will display the result "0".
Thanks for any help.