Hi all,
Currently, I have a query which is set-up for searching on multiple fields on a form.
I am having an issue with finding a specific date within a month. For example, the query field is as follows:-
Problem being, if someone wants to search for records created on the 4th of each month, the data returned is for 4th, 14th, 24th and this is obviously caused by the "like".
Removing the "like" would resolve the problem, but if the user does not want to search on this field, then no records are returned.
I've tried adding an "Or" or "Is Null", but still no luck. All the other fields also have a "like" inclusion.
Thanks in advance for your suggestions.
Currently, I have a query which is set-up for searching on multiple fields on a form.
I am having an issue with finding a specific date within a month. For example, the query field is as follows:-
Code:
Field: myDate: Day([ID_Date])
Criteria: Like "*" & [Forms]![frm_DataMart]![cmbDate] & "*"
Problem being, if someone wants to search for records created on the 4th of each month, the data returned is for 4th, 14th, 24th and this is obviously caused by the "like".
Removing the "like" would resolve the problem, but if the user does not want to search on this field, then no records are returned.
I've tried adding an "Or" or "Is Null", but still no luck. All the other fields also have a "like" inclusion.
Thanks in advance for your suggestions.