出现错误提示是:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e14'
[Microsoft][ODBC Microsoft Access Driver] UPDATE 语句的语法错误。
/diaocha/select2.asp,行 12
原代码是:
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("researchdb.mdb")
%>
<%
dim rs
dim sql
dim selected
selected=request.form("options")
set rs=server.createobject("adodb.recordset")
sql="update research set select"&selected&"=select"&selected&"+1 where id=1"
rs.open sql,conn,3,3
set rs=nothing
conn.close
set conn=nothing
response.redirect "viewresult.asp"
%>
请问高手:这是怎么回事呢?