Link to home
Start Free TrialLog in
Avatar of RishiSingh05
RishiSingh05Flag for United States of America

asked on

IIF statement - wrong number of arguments

Pls point out what is wrong with this iif statement:

Test: IIf(IsNull([TestP/F]),"", iif ([TestP/F]) = "FT" or [TestP/F]="Pass", "Y","N"))

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RishiSingh05

ASKER

Thanks!
Test: Nz(IIf([TestP/F] = "FT" Or [TestP/F] = "Pass", "Y", "N"), "")
too slow :)
To Simple:

Test : Switch(IsNull([TestP/F]), "", [TestP/F] = "FT" Or [TestP/F] = "Pass", "Y", 1 = 1, "N")
I apologize.  I think the rules do say I should give other experts a chance to offer comments before accepting a solution.  My fault.
no problem here.  I was just joking around on MSP's Too Late ... and mine should have been

Too Simple ( not To Simple - key stuck)

mx