多列显示后无法分页
Dreamweaver中可以实现三列显示,但是无法分页,预览提示“错误类型:
ADODB.Recordset (0x800A0BCD)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
”
请问只是哪里出了问题的呢?
<body>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<table width="289" border="1">
<tr>
<%
i=1
do while not Recordset1.eof
%>
<td width="200" nowrap><%=(Recordset1.Fields.Item("UsrID").Value)%></td>
<%if i = 3 then
response.write "</tr> <tr>"
i=0
end if
i=i+1
Recordset1.movenext
loop
%>
</tr>
</table>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>