D
dallastony
All -
I have a user form that is used as a filter criteria for for a query.
The userform field "xMARKET" is the filter in the query, written as:
[Forms]![USERFORM_DATAPULL]![xMARKET]
This works fine. When I enter SOUP in the xMARKET, the criteria
correctly pulls only those records where the market is SOUP.
However, I want to be able to leave the field blank and have the query
pull ALL markets. I tried the following formula in the field: =IIf
(IsNull([xMARKET]),"Like '*'",[xMARKET]), but it didn't work.
Any ideas?
I have a user form that is used as a filter criteria for for a query.
The userform field "xMARKET" is the filter in the query, written as:
[Forms]![USERFORM_DATAPULL]![xMARKET]
This works fine. When I enter SOUP in the xMARKET, the criteria
correctly pulls only those records where the market is SOUP.
However, I want to be able to leave the field blank and have the query
pull ALL markets. I tried the following formula in the field: =IIf
(IsNull([xMARKET]),"Like '*'",[xMARKET]), but it didn't work.
Any ideas?