Hi Subspace, thanks for replying...
Seems like the error message has now move to point at the execute statement now...
-----------------------------
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
/Prj4/FYPLevel1.asp, line 385
------------------------------
Ok, i've change my few sentences into these, have a look if there's any problem:
<%
if varlevel < 3 then
varlevel = varlevel + 1
'Increment database by 1
dim objConn,objRec,SQL
Set objConn = Server.CreateObject("ADODB.Connection")
Set objRec = server.CreateObject("ADODB.Recordset")
objConn.Mode = 0
SQL = "UPDATE `userInfo` SET `vlevel` = '" &varlevel& "' WHERE `fullname` = '" &varName& "'"
objConn.Open StrCon
' objRec.Open SQL, objConn //taken out already
objConn.Execute(SQL) <--Line 385
objRec.Close
objConn.Close
set objRec = nothing
set objConn = nothing
%>
alert("increase!")
<%
end if
%>