ADODB.Recordset 错误 '800a0e78' ???????大侠 有代码

jj_79 2001-12-01 08:51:48
我在ASP 中调用存储过程(在查询器中已通过)时出现ADODB.Recordset 错误 '800a0e78' 错误,代码如下:
Set Conn = Server.CreateObject("ADODB.Connection")
CONN.Open application("connstring")
strSQL = "ttt'" & session("session_monitor_type") & "','" & session("session_flag_i_e") & "','" & session("session_start_date") & "','"&session("session_end_date")&"'"
set rs1=Server.CreateObject("ADODB.RecordSet")
rs1.close
rs1.CursorLocation =3
rs1.open strSQL,conn,1,1(上面可以通过)
while not rs.eof
<td height="17" width="11%" class="hui_mid_tr"> <%'=count_id%></td>
<td height="17" width="19%" class="hui_mid_tr"> <a href="entry.asp?entryid=<%=rs1("form_id")%>"><%'=rs1("form_id")%></a></td>
<td height="17" class="hui_mid_tr" width="23%"><%=rs1("xgl")%></td>
<td height="17" class="hui_mid_tr" width="21%"> <%=rs1("xgv")%></td>
<td height="17" width="26%" class="hui_mid_tr"> <%=rs1("agent")%></td>

rs1.movenext
loop%>
</table>

<%rs.close
set rs=nothing
conn.close
set conn=nothing
%>
...全文
55 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
BrightEye 2001-12-01
  • 打赏
  • 举报
回复
你的rs在哪儿定义的?怎么开始是rs1,后来又变成rs了?
lxcache 2001-12-01
  • 打赏
  • 举报
回复
你上rs1.close了下面就不能用了,所以你把第一个rs1.close去掉试一下

28,390

社区成员

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

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