jvonschmittou
New member
- Local time
- Today, 06:36
- Joined
- Sep 5, 2008
- Messages
- 6
Need help with a date query
Okay, Heres what I'm trying to do. I'm trying to do weekly scans on Access connecting to my database. But I want it to be time specific, I want to scan from 3:00:00 PM to 11:59:00 AM. I'm using a form to select the range and putting the time in the qry. Here's an example of it, >=[Forms]![Form1]![StartDate] & " 6:00:00 AM" And <=[Forms]![Form1]![EndDate] & " 3:15:00 PM" This Qry works great for single days but when I do weekly scans it does the whole week not filtering out the times outside of it.
I added a second part to the qry that will filter the times but in the database it has the date also, I want to exclude that information and just read the time. How would I do that? Here's a example of the time format in the database 8/28/2008 5:18:52 PM
I have been trying to use this, but its not working... Suggestions would be greatly appreciated.
Between #6:00:00 AM# And #3:15:00 PM#
Okay, Heres what I'm trying to do. I'm trying to do weekly scans on Access connecting to my database. But I want it to be time specific, I want to scan from 3:00:00 PM to 11:59:00 AM. I'm using a form to select the range and putting the time in the qry. Here's an example of it, >=[Forms]![Form1]![StartDate] & " 6:00:00 AM" And <=[Forms]![Form1]![EndDate] & " 3:15:00 PM" This Qry works great for single days but when I do weekly scans it does the whole week not filtering out the times outside of it.
I added a second part to the qry that will filter the times but in the database it has the date also, I want to exclude that information and just read the time. How would I do that? Here's a example of the time format in the database 8/28/2008 5:18:52 PM
I have been trying to use this, but its not working... Suggestions would be greatly appreciated.
Between #6:00:00 AM# And #3:15:00 PM#
Last edited: