Iif()

vbjohn

Registered User.
Local time
Today, 09:29
Joined
Mar 22, 2002
Messages
75
Can you tell me what is wrong with this code...



=IIF([DFC] => 11000 AND [AGE] => 50,"12000", (IIF [DFC] => 11000 AND [AGE] < 50, "11000", [DFC]))

I keep on looking it over and can not see it anywhere.

It tells me.. "You May Have Entered In A Comma Without a preceding value or indentifier".
 
=IIF([DFC] => 11000 AND [AGE] => 50,"12000", (IIF [DFC] => 11000 AND [AGE] < 50, "11000", [DFC]))


Try

=IIF(([DFC] => 11000 ) AND ( [AGE] => 50)) ,"12000", IIF (([DFC] => 11000) AND ([AGE] < 50)), "11000", [DFC]))
 
Well...

=IIF([DFC] => 11000 AND [AGE] => 50,"12000", (IIF [DFC] => 11000 AND [AGE] < 50, "11000", [DFC]))

'(' in wrong place.....
=IIF([DFC] => 11000 AND [AGE] => 50,"12000", IIF ([DFC] => 11000 AND [AGE] < 50, "11000", [DFC]))

Regards,
 

Users who are viewing this thread

Back
Top Bottom