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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateTime Query 1

Status
Not open for further replies.

Sunwriter

IS-IT--Management
Jan 25, 2004
6
US
:Access 2002, SP3

I have a datetime field that I need to query as follows:

Between #2/20/2006 4:00:01 PM# And #2/21/2006 4:00:00 PM#

So that I don't have to re-enter the date portion each day...

How can I re-design this critera to look back (from 4:00.00 PM) each day, to 4:00.01 PM the prior day? Or back 23hrs, 59min, 59sec. if you want to look at it that way?

Thanks in advance for any assistance.

Jeff
 
You may try this:
Between Date()-1+#4:00:01 PM# And Date()+#4:00:00 PM#

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top