O
Ofer
Try this as the filter
Like
(iif(isnull(Forms![FormName]![FieldName]),"*",Forms![FormName]![FieldName]))
Like
(iif(isnull(Forms![FormName]![FieldName]),"*",Forms![FormName]![FieldName]))
Tom said:I'm running a query and my field criteria comes from input fields on a form.
If the input field on the form is blank, I want to retrieve all the records
regardless of the value of the specified form. If there is a value in the
field, I want to only retrieve those records that contain that value.
Is there a wildcard value I can use if the value in the form is null so that
I can retrieve all the records? Now when the field is null, no records are
retrieved.
Marshall Barton said:Try changing the criteria to something like:
=Forms!theform!thecontrol OR Forms!theform!thecontrol Is
Null