oksum73
asked on
strSQL="Select * FROM members WHERE mGoldFinishDate<="+cstr(datNow)+""
How can I make this work
<!--#include file="../../sqlcon/db.asp" -->
<%
datNow = date()+time()
strSQL="Select * FROM members WHERE mGoldFinishDate<="+cstr(da tNow)+""
Set objRS = Server.CreateObject("ADODB .Recordset ")
objRS.Open strSQL, objCON, 3, 3
IF NOT objRS.EOF THEN
END IF
objRS.Close
objCON.close
%>
<!--#include file="../../sqlcon/db.asp"
<%
datNow = date()+time()
strSQL="Select * FROM members WHERE mGoldFinishDate<="+cstr(da
Set objRS = Server.CreateObject("ADODB
objRS.Open strSQL, objCON, 3, 3
IF NOT objRS.EOF THEN
END IF
objRS.Close
objCON.close
%>
ASKER
SQL server
datetime field
datetime field
ASKER
And then I want to update all the fields like this
IF NOT objRS.EOF THEN
objRS("mType") = 0
END IF
IF NOT objRS.EOF THEN
objRS("mType") = 0
END IF
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
mssql server:
strSQL="Select * FROM members WHERE mGoldFinishDate<=getdate()
oracle:
strSQL="Select * FROM members WHERE mGoldFinishDate<=SYSDATE"
mysql:
strSQL="Select * FROM members WHERE mGoldFinishDate<=CURRENT_D
access
strSQL="Select * FROM members WHERE mGoldFinishDate<=now()"
also, do you have time portion in the date field?