G
Guest
I have been working on another parameter query with a search box. I created
a parameter query with 7 search fields. I need the users to be able to enter
parameters in any combination. If they don’t enter anything for a certain
parameter, I need it to return records even if those fields are blank. I
created a form to enter the criteria (SearchBox). I have entered the
following into the query. But I it does not seem to work correctly. I am
having problems with mainly with the dates. If I don’t enter any dates, I
don’t get any records unless there is something in the all the date fields.
If any one of the fields it blank it does not show up.
If you need more info, please let me know.
Again thanks and sorry for all the questions in one day.
FIELDS Criteria
Region Like “*†& [Forms]![SearchBox]![Region] & “*â€
CompanyID Like “*†& [Forms]![SearchBox]![CompanyID] & “*â€
CallDate Like “*†& [Forms]![SearchBox]![CallDate] & “*â€
SchedDate Like “*†& [Forms]![SearchBox]![SchedDate] & “*â€
CompDate Like “*†& [Forms]![SearchBox]![CompDate] & “*â€
Tech Like “*†& [Forms]![SearchBox]![Tech] & “*â€
Manager Like “*†& [Forms]![SearchBox]![Manager] & “*â€
a parameter query with 7 search fields. I need the users to be able to enter
parameters in any combination. If they don’t enter anything for a certain
parameter, I need it to return records even if those fields are blank. I
created a form to enter the criteria (SearchBox). I have entered the
following into the query. But I it does not seem to work correctly. I am
having problems with mainly with the dates. If I don’t enter any dates, I
don’t get any records unless there is something in the all the date fields.
If any one of the fields it blank it does not show up.
If you need more info, please let me know.
Again thanks and sorry for all the questions in one day.
FIELDS Criteria
Region Like “*†& [Forms]![SearchBox]![Region] & “*â€
CompanyID Like “*†& [Forms]![SearchBox]![CompanyID] & “*â€
CallDate Like “*†& [Forms]![SearchBox]![CallDate] & “*â€
SchedDate Like “*†& [Forms]![SearchBox]![SchedDate] & “*â€
CompDate Like “*†& [Forms]![SearchBox]![CompDate] & “*â€
Tech Like “*†& [Forms]![SearchBox]![Tech] & “*â€
Manager Like “*†& [Forms]![SearchBox]![Manager] & “*â€