pmcmicha
Technical User
- May 25, 2000
- 353
I have a report in which it queries the database for information and runs IIf statement. This works without a problem, but when I go to create a new report and then try this same query, I get an #Error for the result. I tried a copy and paste of the statement, no luck. Looked up the #Error and tried all relevant troubleshooting steps like making sure the field size was large enough and what not, still no dice.
Any help would be appreciated, thanks.
Code:
=sum(IIf([TABLE].[COL1]=No,0,IIf([TABLE].[COL2]=Yes,0,IIf([TABLE].[COL3]=Yes,0,1))))
Any help would be appreciated, thanks.