G
G
I'm having a problem with an IIF statement.
I have a query to select records from a table for a search form. I would
like to show records depending on a selection in the search form [selection].
I have a number field in the table that I'm using for the selection
[numberfield].
I've set the following crteria for the [numberfield]:
IIf([Forms]![selection]=2,>-1,0)
The problem is that no records are appearing when the [selection]=2. I
tried (like "*") as criteria for a true result and that doesn't work.
Does anyone have any suggestions?
Thanks.
Gary
I have a query to select records from a table for a search form. I would
like to show records depending on a selection in the search form [selection].
I have a number field in the table that I'm using for the selection
[numberfield].
I've set the following crteria for the [numberfield]:
IIf([Forms]![selection]=2,>-1,0)
The problem is that no records are appearing when the [selection]=2. I
tried (like "*") as criteria for a true result and that doesn't work.
Does anyone have any suggestions?
Thanks.
Gary