Hi,
I can't figure out why the update query to access database doesn't work from ASP while it works fine with the select statement.
Here is what is have for the update statement
Public function testUpdate
dim conn, rs, x, correctpass, username, sqlquery, SQL
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "C:/Inetpub/ set rs = Server.CreateObject("ADODB.recordset")
SQL = "UPDATE records " & _
"SET records.userid = '33dell' " & _
"WHERE records.username = 'dell'"
rs.Open SQL, conn
rs.close
conn.close
end function
I keep getting the error "No value given for one or more required parameters.
session-class.asp, line 85 which points to
rs.Open SQL, conn.
Can anyone see why it doesn't work?
Thank for anyone can help.
I can't figure out why the update query to access database doesn't work from ASP while it works fine with the select statement.
Here is what is have for the update statement
Public function testUpdate
dim conn, rs, x, correctpass, username, sqlquery, SQL
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "C:/Inetpub/ set rs = Server.CreateObject("ADODB.recordset")
SQL = "UPDATE records " & _
"SET records.userid = '33dell' " & _
"WHERE records.username = 'dell'"
rs.Open SQL, conn
rs.close
conn.close
end function
I keep getting the error "No value given for one or more required parameters.
session-class.asp, line 85 which points to
rs.Open SQL, conn.
Can anyone see why it doesn't work?
Thank for anyone can help.