Okay, I'm missing something here.
#1 - Did I set up the "datstring" correctly to define exact time 24 hours ago within a SQL Server 2000 database?
#2 - If so, should I use it in the WHERE clause differently?
datestring = DateAdd("h", -24, now())
SQL = SQL & " Where CallReceivedTime > '" & datestring & "'")
Here's the error message I'm getting -
Expected end of statement
/24hrcapture.asp, line 24, column 64
SQL = SQL & " Where CallReceivedTime > '" & datestr & "'")
---------------------------------------------------------------^
#1 - Did I set up the "datstring" correctly to define exact time 24 hours ago within a SQL Server 2000 database?
#2 - If so, should I use it in the WHERE clause differently?
datestring = DateAdd("h", -24, now())
SQL = SQL & " Where CallReceivedTime > '" & datestring & "'")
Here's the error message I'm getting -
Expected end of statement
/24hrcapture.asp, line 24, column 64
SQL = SQL & " Where CallReceivedTime > '" & datestr & "'")
---------------------------------------------------------------^