I work on a form where I have four comboboxes for : Category , Product, Month , Year , 2 buttons for search and clear .
When I open the form there are all data displayed on a subform.When I choose criteria and hit search the subform filters out the results.
Now I have to add 2 more textboxes for Start Date and End Date.
I ve done this and have put the following expression to the criteria field in the query I am working with:
Between [Forms]![SearchForm]![StartDate] AND [Forms]![SearchForm]![EndDate]
So now I have the problem that I have to enter some dates on the two textboxes so that the subform displays some results else I get a blank subform .
Does anyone know how to display all data bypassing the criteria and if there are dates entered filter them by date?
When I open the form there are all data displayed on a subform.When I choose criteria and hit search the subform filters out the results.
Now I have to add 2 more textboxes for Start Date and End Date.
I ve done this and have put the following expression to the criteria field in the query I am working with:
Between [Forms]![SearchForm]![StartDate] AND [Forms]![SearchForm]![EndDate]
So now I have the problem that I have to enter some dates on the two textboxes so that the subform displays some results else I get a blank subform .
Does anyone know how to display all data bypassing the criteria and if there are dates entered filter them by date?