ADODB.Recordset 错误 '800a0e78' 对象关闭时如何解决? 行 52 100

<%subconnetDimobjCryptTest1SetobjCryptTest1=Server.CreateObject("Ssqlinfo.ConnectDB")... <%
sub connet
Dim objCryptTest1
Set objCryptTest1 = Server.CreateObject("Ssqlinfo.ConnectDB")
remark = objCryptTest1.getsqlinfo("remark")
oldremark = objCryptTest1.getsqlinfo("oldremark")
str = objCryptTest1.getsqlinfo("172.23.1.2","rstarbasic")
Set objCryptTest1 = Nothing
end sub

sub setverify
verify="1"
if not Session("barno")="" then
if Session("type")="学生网页" then m_type="stu"
if Session("type")="家长网页" then m_type="par"
if Session("type")="教师网页" then m_type="tea"
if Session("type")="自费卡" then m_type="zfk"
if Session("type")="" then
Session("barno")=""
response.write "网页过期!!"
response.end
end if
Dim objCryptTest1
Dim objCryptTest
Set objCryptTest1 = Server.CreateObject("Ssqlinfo.ConnectDB")
Str = objCryptTest1.getsqlinfo("172.23.1.2","rstarbasic")
St = objCryptTest1.getsqlinfo("172.23.1.2","starbasic")
'canteen = objCryptTest1.getsqlinfo("canteen")
ibmyp = objCryptTest1.getsqlinfo("172.23.1.2","remark_mpy")
remark = objCryptTest1.getsqlinfo("172.23.1.2","remark")
Set objCryptTest = Server.CreateObject("PwdInfo.Password")
tname = objCryptTest.LockPwd(Session("barno"), Session("passwd"))
Set objCryptTest1 = Nothing
Set objCryptTest = Nothing
m_barno=Session("barno")
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open str
'Set conn1 = Server.CreateObject("ADODB.Connection")
'conn1.Open canteen
Set rs = Server.CreateObject("ADODB.recordset")
strsql="select * from sqlsql where sql_ownr='02' and sql_name='"+m_type+"_pass'"
rs.open strSQL,conn,1,3
Set rs1 = Server.CreateObject("ADODB.recordset")
mm=InStr(rs("sql_sql"),"m_barno")
strsql1=left(rs("sql_sql"),mm-1)+m_barno+right(rs("sql_sql"),len(rs("sql_sql"))-mm+1-7)
if Session("barno")>"8000000" then
'rs1.open strSQL1,conn1,1,3
else
rs1.open strSQL1,conn,1,3
end if
if not rs1.eof then
if Session("type")="家长网页" then tname=rs1("st_password")
if trim(tname)<>trim(rs1("st_password")) then
Session("barno")="无数据"
response.write "密码或条形码不对!!"
response.end
else
verify="0"
if Session("barno")>"1010000" and Session("barno")<"1100000" then
session("t_name")=rs1("st_name")
session("t_sex")=rs1("st_sex")
session("t_dept")=rs1("st_dept")
session("t_grade")=""
session("t_class")=""
session("t_type")=rs1("st_post")
else
else
if Session("barno")>"1100000" and Session("barno")<"8000000" then
session("t_name")=rs1("st_name")
' session("t_sex")=rs1("st_sex")
' session("t_dept")=rs1("st_dept")
session("t_grade")=rs1("st_grade")
session("t_class")=rs1("st_class")
session("t_type")="学生"
else
else
session("t_name")=rs1("st_name")
session("t_sex")=""
session("t_dept")=rs1("st_dept")
session("t_grade")=""
session("t_class")=""
session("t_type")=rs1("c_type")
end if
end if
end if
else
Session("barno")="无数据"
response.write "查无此人!!"
response.end
end if
else
response.write "网页过期!!"
response.end
end if
end sub

%>
展开
 我来答
缓步莫迟疑C
2012-01-08 · TA获得超过1.1万个赞
知道大有可为答主
回答量:6217
采纳率:73%
帮助的人:6653万
展开全部
if Session("barno")>"8000000" then
'rs1.open strSQL1,conn1,1,3 '这一行被你注释掉了,当条件为真时,实际没有句语执行,也就会造成后面无法访问rs1对象的错误.
else
rs1.open strSQL1,conn,1,3
end if
更多追问追答
追问
如何去掉注释,就成了这个错误

ADODB.Recordset 错误 '800a0bb9'
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/verify.asp,行 48
追答
conn1, 是这个对象没有被创建的关系.
苏州蓝晓生物科技有限公司_
2022-08-05 广告
苏州蓝晓生物科技有限公司。标准化核心产品:公司拥有完整的琼脂糖介质、葡聚糖介质、聚甲基丙烯酸酯介质生产线,年产分离介质50000L,产品质量稳定并达到国际领先水平。核心优势:公司核心技术人员拥有近二十年不同基质的基球开发和官能化的丰富技术经... 点击进入详情页
本回答由苏州蓝晓生物科技有限公司_提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式