大家帮帮忙看下这个代码错在哪了?

来源:百度知道 编辑:UC知道 时间:2024/06/04 00:36:10
这是其中出错的一部分,提示如下:
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1。
honnortypeManage.asp, 第 26 行

25行:if request("cur_action")="delete" then
26行: set rs_check=conn.execute("select * from honnor where type="&request("type"))
if request("Affirm")="" or isnull(request("Affirm")) then Affirm="0" else Affrim=request("Affirm")
if not(rs_check.eof and rs_check.bof) and Affirm="0" then '判断在产品库中是否有此种类产品,如果有,要用户再确认
response.write "<script>if(confirm(""该种类还有证书,确定删除吗?\n删除之后,该种类下的证书也会随时删除!"")){location.replace('?type="&request("type")&"&cur_action=delete&Affirm=1&PageNo="&request("PageNo")&"')}else{history.back();}</script>"
response.end
end if
if Affri

"参数不足,期待是 1"一般是指你的SQL语句有问题,你看一下request("type")是否有值.

set rs_check=conn.execute("select * from honnor where type="&request("type")) 中的request("type")变量没有传输到这个网页。

一是可能没有参数
也有可能,type的值应该加''
set rs_check=conn.execute("select * from honnor where type='"&request("type")&"'")