Hi,
I have a search query on my access database which uses a form to set it's search criteria. The form asks for Start Date, Start time, End date, End time. If the user specifies 1 day and a set time criteria the search works fine. If the user specifies a date range we then have problems !!
If the user states eg 01-03-20016 06:00 to 06-03-2016 17:00 the search query falls down. It shows each date but shows only between 06:00 and 17:00 on each day instead of going all the way through from 06:00 on 01-03-2016 to 17:00 on the 06-03-2016.
Any ideas how I can get the search function to go all the way through?
Below are the search details I use on my query:
Search Date:
Between [Forms]![reports_menu_form]![startdate] And [Forms]![reports_menu_form]![enddate]
Search Time:
Between [Forms]![reports_menu_form]![starttime] And [Forms]![reports_menu_form]![endtime]
Any help in laymans terms would be much appreciated.
Thanks in advance
I have a search query on my access database which uses a form to set it's search criteria. The form asks for Start Date, Start time, End date, End time. If the user specifies 1 day and a set time criteria the search works fine. If the user specifies a date range we then have problems !!
If the user states eg 01-03-20016 06:00 to 06-03-2016 17:00 the search query falls down. It shows each date but shows only between 06:00 and 17:00 on each day instead of going all the way through from 06:00 on 01-03-2016 to 17:00 on the 06-03-2016.
Any ideas how I can get the search function to go all the way through?
Below are the search details I use on my query:
Search Date:
Between [Forms]![reports_menu_form]![startdate] And [Forms]![reports_menu_form]![enddate]
Search Time:
Between [Forms]![reports_menu_form]![starttime] And [Forms]![reports_menu_form]![endtime]
Any help in laymans terms would be much appreciated.
Thanks in advance