I am trying to use the IIF statement to look for a null value. That seems to be working fine..
The problem occurs when I use a LIKE Statement inside the IIF statement.
Here are some examples:
but the above statement used inside an IIF statements returns nothing as in the statement below.
For some reason the LIKE statement doesn't seem to work when used inside the IIF statement...
ANY help would be appreciated. Thank you..
The problem occurs when I use a LIKE Statement inside the IIF statement.
Here are some examples:
Code:
Like "*" & [Forms]![Search Form]![Title] & "*" [B] This works fine[/B]
Code:
IIf(IsNull([Forms]![Search Form]![Title]),Null,Like "*" & [Forms]![Search Form]![Title] & "*") [B]The above statement does not work and I know the IsNull expression is working,[/B]
ANY help would be appreciated. Thank you..
Comment