So I have been through all the postings I can read here but unable to address my issue:
I have 4 unbound text boxes on a form to produce a filtered search on these four fields. The problem has been narrowed down to one of these fields "Client Contact" which is a simple text field identical to two of the other fields. When I add the criteria for this field the results returned and no data. If I remove the criteria from this field and only use the other three I get the proper results.
Here is the SQL I see when the three fields are used and the proper results are shown:
WHERE (((TimeSheets.[Week Ending]) Like "*" & [Forms]![TimeSheet Search]![Week Ending] & "*") AND ((TimeSheets.[Employee Name]) Like "*" & [Forms]![TimeSheet Search]![Employee Name] & "*") AND ((TimeSheets.Client) Like "*" & [Forms]![TimeSheet Search]![Client] & "*"))
ORDER BY TimeSheets.[Week Ending];
I need to be able to search the fourth text field (similar to the others) but adding the same criteria yields no results or wrong results.
Here is the SQL when I enter the criteria in the fourth: (which doesn't display what I'm after)
WHERE (((TimeSheets.[Week Ending]) Like "*" & [Forms]![TimeSheet Search]![Week Ending] & "*") AND ((TimeSheets.[Employee Name]) Like "*" & [Forms]![TimeSheet Search]![Employee Name] & "*") AND ((TimeSheets.Client) Like "*" & [Forms]![TimeSheet Search]![Client] & "*") AND ((TimeSheets.[Client Contact]) Like "*" & [Forms]![TimeSheet Search]![Client Contact] & "*"))
ORDER BY TimeSheets.[Week Ending];
My goal here is to enter any search criteria and in any unbound text box and have it return those fields that match or a combination of search criteria entered in several unbound text boxes in my search form.
Any help is appreciated.
I have 4 unbound text boxes on a form to produce a filtered search on these four fields. The problem has been narrowed down to one of these fields "Client Contact" which is a simple text field identical to two of the other fields. When I add the criteria for this field the results returned and no data. If I remove the criteria from this field and only use the other three I get the proper results.
Here is the SQL I see when the three fields are used and the proper results are shown:
WHERE (((TimeSheets.[Week Ending]) Like "*" & [Forms]![TimeSheet Search]![Week Ending] & "*") AND ((TimeSheets.[Employee Name]) Like "*" & [Forms]![TimeSheet Search]![Employee Name] & "*") AND ((TimeSheets.Client) Like "*" & [Forms]![TimeSheet Search]![Client] & "*"))
ORDER BY TimeSheets.[Week Ending];
I need to be able to search the fourth text field (similar to the others) but adding the same criteria yields no results or wrong results.
Here is the SQL when I enter the criteria in the fourth: (which doesn't display what I'm after)
WHERE (((TimeSheets.[Week Ending]) Like "*" & [Forms]![TimeSheet Search]![Week Ending] & "*") AND ((TimeSheets.[Employee Name]) Like "*" & [Forms]![TimeSheet Search]![Employee Name] & "*") AND ((TimeSheets.Client) Like "*" & [Forms]![TimeSheet Search]![Client] & "*") AND ((TimeSheets.[Client Contact]) Like "*" & [Forms]![TimeSheet Search]![Client Contact] & "*"))
ORDER BY TimeSheets.[Week Ending];
My goal here is to enter any search criteria and in any unbound text box and have it return those fields that match or a combination of search criteria entered in several unbound text boxes in my search form.
Any help is appreciated.