Hi,
I have built a search form based on a bound to a query where I have Like criterias to search data by Departments, Groups, Names etc...
For e.g to search by Surname - I have --
Like "*" & [forms]![frm_Search]![Surname] & "*"
This works great and returns Surname data that looks like what is entered in the text box on forms.
Now I want to do similar thing in order to search data between 2 dates plus if I leave Date form text box blank it should return all data.
Its 2010 therefore using date picker in 2 text boxes (Start Date and End Date)
Please help
Regards.....
I have built a search form based on a bound to a query where I have Like criterias to search data by Departments, Groups, Names etc...
For e.g to search by Surname - I have --
Like "*" & [forms]![frm_Search]![Surname] & "*"
This works great and returns Surname data that looks like what is entered in the text box on forms.
Now I want to do similar thing in order to search data between 2 dates plus if I leave Date form text box blank it should return all data.
Its 2010 therefore using date picker in 2 text boxes (Start Date and End Date)
Please help
Regards.....