Searching for records in a form

G

Guest

I have created search fields in forms before without issue. In the past, I
have always been searching for SOMETHING. This time one of the fields I have
is null some of the time, and when the user leaves this field blank, I want
all records to come up, including the records that have null values in this
field. ANYONE have any ideas???

Example:
Currently, in my form, when the user leaves a field blank, say the EntryDATE
field, my form puts an asterisk in the EntryDATE field when the user clicks
the SEARCH button. Then the query searches for the criteria:
Like "*"+[forms]![UserForm]![EntryDate]+"*"

This will bring up all records that have a date in this field. It will not,
however, bring up the records that have a null value in this field. Please
help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top