Hi
I need to update a date field in a employee table using update statement. It doesnt update it. I dont even get any error in there. Please let me know.
Last_Login is date field. I want to put todays date in there
userName = session("Userid")
set RST=Server.CreateObject("adodb.recordset")
strSQL = "UPDATE employee SET [Last_Login]='"& Now() &"' WHERE UserName = '" & userName & "';"
RST.open strSQL, conn
I need to update a date field in a employee table using update statement. It doesnt update it. I dont even get any error in there. Please let me know.
Last_Login is date field. I want to put todays date in there
userName = session("Userid")
set RST=Server.CreateObject("adodb.recordset")
strSQL = "UPDATE employee SET [Last_Login]='"& Now() &"' WHERE UserName = '" & userName & "';"
RST.open strSQL, conn