ADODB.Recordset 错误 '800a0bb9',有源码,各位大虾帮忙啊

audny 2001-12-18 11:32:04
ADODB.Recordset 错误 '800a0bb9'

变量或者类型不正确,或者不在可以接受的范围之内,要不就是与其他数据冲突。

/b2b/adm/ispass.asp,行11
源码如下
<%@ Language=VBScript %>

<!--#include file="adoconn.asp"-->
<%
statid=request("staid")
Response.Write statid

set rs=server.CreateObject ("adodb.recordset")
sql="select ID,renzhen from stationinfo where ID="&statid
'Response.End ()
rs.Open sql,conn,3,3《第十一行》

rs("renzhen")=true
rs.Update
rs.Close ()
set rs=nothing
conn.close
set conn=nothing
Response.Write "已经认证完毕!"

%>
...全文
90 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
audny 2001-12-19
  • 打赏
  • 举报
回复
谢谢大伙关系,散分了!
lemontree197977 2001-12-18
  • 打赏
  • 举报
回复
将:rs.Open sql,conn,3,3

改为:Set Rs=conn.Execute(sql)

试试??
audny 2001-12-18
  • 打赏
  • 举报
回复
谢谢大伙了,问题解决了
wzy9645 2001-12-18
  • 打赏
  • 举报
回复
你的ID是什么类型?
要不是int 就加上 'ID'
sql="select ID,renzhen from stationinfo where ID='"&statid&"'"
audny 2001-12-18
  • 打赏
  • 举报
回复
我改过了,还是不行啊
luojx 2001-12-18
  • 打赏
  • 举报
回复
接收的值类型变了,是不是变为字符串型了。
lazywolf 2001-12-18
  • 打赏
  • 举报
回复
把statid=request("staid")改为statid=cint(request("staid"))
slightgao 2001-12-18
  • 打赏
  • 举报
回复
如果取不出来记录,你怎么update

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧