在 <%for i=1 to rs.PageSize%>
<%if rs.EOF then
exit for
end if%>
前面加上<%
if not rs.eof and rs.bof then
%>
在 <%rs.movenext
next
%>后面加上<% else %><tr><td colspan=4>无记录</td></tr><% end if %>
if not rs.eof and not rs.bof then
for i=1 to rs.recordcount
response.write "记录"
rs.movenext
if rs.eof then exit for
next
else
response.write "无记录"
end if