G
Guest
I have a IIf statement. Now I want to add some limit, but it won't accept it.
Could someone tell me where is wrong? Or I can't use it like that? Thank you.
Current:
Sum(IIf([Fail]>4,1,0))
New: (If Type = AAA or BBB, Check the fail)
Sum(IIf([Type] = "AAA" Or [Type] = "BBB"), IIf([Fail]>4,1,0),0)
Could someone tell me where is wrong? Or I can't use it like that? Thank you.
Current:
Sum(IIf([Fail]>4,1,0))
New: (If Type = AAA or BBB, Check the fail)
Sum(IIf([Type] = "AAA" Or [Type] = "BBB"), IIf([Fail]>4,1,0),0)