A
adam.vogg
Hello,
I am using an iif statement in a query criteria. It draws data from a
dropdown box on an open form. The dropdown box has only 3 possible
choices. If the user does not choose a value, but leaves it blank, i
want the query to return all the records.
I read in a different post in here that i cant use 'Like' so right now
I have this in criteria:
IIf([forms]![frmSearch].[loadbox].[value]<>"",[forms]![frmSearch].
[loadbox].[value],"*")
It works fine when the user chooses an option, but returns nothing
when they choose nothing. I also tried to make the false statement
""Option1" or "Option2" or "Option3"" and i got an error saying "you
canceled the previous operation".
help
I am using an iif statement in a query criteria. It draws data from a
dropdown box on an open form. The dropdown box has only 3 possible
choices. If the user does not choose a value, but leaves it blank, i
want the query to return all the records.
I read in a different post in here that i cant use 'Like' so right now
I have this in criteria:
IIf([forms]![frmSearch].[loadbox].[value]<>"",[forms]![frmSearch].
[loadbox].[value],"*")
It works fine when the user chooses an option, but returns nothing
when they choose nothing. I also tried to make the false statement
""Option1" or "Option2" or "Option3"" and i got an error saying "you
canceled the previous operation".
help