I am using the following criteria in a query to pull data between specific hours for a specific day:
The above works great except when trying to do the following....If i want to pull data from a range of dates, say between -1 days and -5 days it grabs all of the data from the first date to the last date, not just from in between 9am and 6pm for each day.
How can I pull data between a range of dates and only have it pull the data for each day between those times? Hope this makes sense.
Any suggestions or help is appreciated!
Thanks!
Paul
Code:
Between DateAdd("h",18,DateAdd("d",-2,Date())) And DateAdd("h",19,DateAdd("d",-1,Date()))
The above works great except when trying to do the following....If i want to pull data from a range of dates, say between -1 days and -5 days it grabs all of the data from the first date to the last date, not just from in between 9am and 6pm for each day.
How can I pull data between a range of dates and only have it pull the data for each day between those times? Hope this makes sense.
Any suggestions or help is appreciated!
Thanks!
Paul