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!

date query

Status
Not open for further replies.

Clegg25

MIS
Jul 27, 2003
24
US
how do i make a query that pulls up the last 12 or 24 hours of information based on a Time/Date field?
 
In the criteria for your Time/Date:
Code:
  >=Now()-0.5   (for 12 hours)
  >=Now()-1     (for 24 hours)
 
the 24 hours works great, but the 12 hour does not work. at least i dont think it does.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top