G
Guest
Hey Sharon -
To handle the null records put the forms!searchFrm!
SearchBox on the field line of a new column in your query
and then in the criteria line put Is Null on an or line.
The SQL would be something like;
SELECT Table1.*
FROM Table1
WHERE (((Table.FieldToSearch) Like "*" & [Forms]!
[searchform]![seachfield] & "*")) OR ((([Forms]!
[searchform]![seachfield]) Is Null));
To do multiple keywords search is more complicated. When
you say they want to search for >1 keyword do you mean
they want to return any record that has at least one of
the keywords they enter? OR do you mean return any record
that has ALL of the keywords they enter?
- Anne
To handle the null records put the forms!searchFrm!
SearchBox on the field line of a new column in your query
and then in the criteria line put Is Null on an or line.
The SQL would be something like;
SELECT Table1.*
FROM Table1
WHERE (((Table.FieldToSearch) Like "*" & [Forms]!
[searchform]![seachfield] & "*")) OR ((([Forms]!
[searchform]![seachfield]) Is Null));
To do multiple keywords search is more complicated. When
you say they want to search for >1 keyword do you mean
they want to return any record that has at least one of
the keywords they enter? OR do you mean return any record
that has ALL of the keywords they enter?
- Anne