Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FIlter out certain times 1

Status
Not open for further replies.

rockiwood

MIS
Apr 17, 2002
50
GB
I am building a query for a table that has datetimedown and datetimeup. They are in the format of #6/27/2002 3:00:54 AM#.

I want to filter out any time(hours) that are between 3AM and 7AM in the datetimedown field.

I have created a field in the query:
DateTimeDownHours: ([flddateTimeDown])
and formatted it formatted it as Long Time. I have tried several filters and I can't (don't know how to) get it to work.

Is there a way that these can be filtered out in a query?
I hope this enough information.

Thanks for any help in advance!!

Jerry
 
SQL code snippet:
WHERE TimeValue(flddateTimeDown) Between #03:00:00# And #07:00:00#

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top