语法错误 (操作符丢失) 在查询表达式 'ID=' 中

下图为asp代码的提交界面 与提交后系统的错误提示。提示错误信息为:语法错误 (操作符丢失) 在查询表达式 'ID=' 中以下为我的代码,求给位大神帮忙修改一下<%dim a,b,c,d,e,f,nono=Request.QueryString("xh")a=Request.Form("sbmc")b=Request.Form("gmrq")c=Request.Form("gmsl")d=Request.Form("wxrq")e=Request.Form("djr")f=Request.Form("ssks")set conn=Server.CreateObject("ADODB.Connection")conn.provider="Microsoft.ACE.oledb.12.0"conn.Open(Server.Mappath("sbwxgl.accdb"))set rs = Server.CreateObject("ADODB.recordset")rs.Open "Select * from jbxx", connset comm=Server.CreateObject("ADODB.Command")comm.ActiveConnection=conncomm.CommandText="Update jbxx set 设备名称='"& a &"' where ID="& no &"" comm.Executecomm.CommandText="Update jbxx set 购买日期='"& b &"' where ID="& no &"" comm.Executecomm.CommandText="Update jbxx set 购买数量='"& c &"' where ID="& no &""comm.Executecomm.CommandText="Update jbxx set 维修日期='"& d &"' where ID="& no &""comm.Executecomm.CommandText="Update jbxx set 登 记 人='"& e &"' where ID="& no &""comm.Executecomm.CommandText="Update jbxx set 所属科室='"& f &"' where ID="& no &""comm.Execute%>

改为
exec="select * from hmc where id='"&id&"'"

试试
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答