错误类型:ADODB.Field (0x80020009)BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除

来源:百度知道 编辑:UC知道 时间:2024/06/03 16:17:21
出错的页面:请大虾们帮忙啊 ~~
麻烦说的详细点啊~~我是个菜鸟~~
谢谢啊!!!!
<!--#include file="open.asp" -->
<%
del=Request("del")
if del<>"" then
SQL="Delete from new1 where id="&del
conn.Execute SQL
Response.write("<script>alert('记录删除成功')</script>")
end if
%>
<HTML>
<HEAD>
<TITLE>管理</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../image/myweb.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<style type="text/css">
<!--
body {
margin-top: 5px;
background-color: #f7f7f7;
}
-->
</style>
</HEAD>
<BODY leftMargin=0 marginwidth="0">
<br>
<TABLE height=30 cellSpa

select * from liuyan order by l_time desc liuyan 里面没有记录造成错误。 <% for i=1 to rs.pagesize %> 改为: <% if not rs.bof and not rs.eof then for i=1 to rs.pagesize %> ---------------- <% rs.movenext if rs.eof then exit for end if next %> 改为: <% rs.movenext if rs.eof then exit for end if next end if %> 改为: <% end if%>