I have the following:
=IF(DATE="","OK",
IF(DATE<25,"MONDAY"
,IF(DATE<35,"TUESDAY",
IF(DATE<45,"WEDNESDAY
",IF(DATE<75,"THURSDAY"
,IF(DATE<88,"FRIDAY"
,IF(DATE<92,"SATURDAY"
,"WEEKEND")))))))
This works in excel but i need to take into access, I know how the function works in excel but it seems (from help) that it will always evaluate the true and false ::::::
**************************
**********
**********
**********
*
IIF always evaluates both truepart and falsepart, even though it returns only one of them. Because of this, you should watch for undesirable side effects. For example, if evaluating falsepart results in a division by zero error, an error occurs even if expr is True.
**************************
**********
**********
**********
Can i still use IIF? if so what syntax can i use or alternatively if i create a table with values in them how can i accomplish this with the QBD or SQL syntax?
Thanks
Start Free Trial