D
Dave
I have a form that searches 2 text boxes and displays the
information in datasheet view below it once you hit
submit. It works great for the criteria "or", and "and".
However, I would like to have it set up as "and"
and "null". Basically, I want this examples to happen:
Text Box Name 1=city
Text Box Name 2=state
Search 1:
1=Miami
2=Florida
Prodoces 3 records
Search 2:
1=Miami
2=(null)
Produces 3 records
Search 3:
1=(null)
2=Florida
Produces 15 records
Basically, I want the "and" to work as it should and does;
however, when one of the fields is left blank, I don't
want it to search for, say, Miami and blank state...I want
it to search for all of Miami while passing the null
value. Any ideas?
information in datasheet view below it once you hit
submit. It works great for the criteria "or", and "and".
However, I would like to have it set up as "and"
and "null". Basically, I want this examples to happen:
Text Box Name 1=city
Text Box Name 2=state
Search 1:
1=Miami
2=Florida
Prodoces 3 records
Search 2:
1=Miami
2=(null)
Produces 3 records
Search 3:
1=(null)
2=Florida
Produces 15 records
Basically, I want the "and" to work as it should and does;
however, when one of the fields is left blank, I don't
want it to search for, say, Miami and blank state...I want
it to search for all of Miami while passing the null
value. Any ideas?