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

v10 Select Statement minus 8 hours

Status
Not open for further replies.

Butlertl

IS-IT--Management
Mar 15, 2006
54
US
I currently have a report with a select statement as follows:
{OAO_HDSP_Support.Last Modified Date/Time} < CurrentDate - 1

I need to select data not touched within 8 hours.....I believe I need DATEDIFF but the solution eludes me......

Thanks
 
Try:

{OAO_HDSP_Support.Last Modified Date/Time} <
dateadd("h",-8, currentdatetime)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top