为什么记录集的数量=-1?
<%
Sql = "Select SpecialID,specialname from special"
set rs = conn.execute(sql)
CountClass=rs.recordcount
Response.Write(CountClass)
if not rs.eof then
do while not rs.eof
%>
<tr>
<td width="15%" height="25" align="center" valign="middle"><%=rs(0)%></td>
<td width="85%" height="25" valign="middle">
<input name="classid" type="checkbox" id="classid" value='<%=rs(0)%>'> <a href="admin_Class.asp?unid=<%=rs(0)%>"><%=rs(1)%></a>
<select name="OrderFlag<%=rs(0)%>">
<%
for i = 1 to CountClass
Response.write("<option ")
if rs(2) = i then Response.write("selected")
Response.write(" value="& i &">"& i &"</option>")
next
%>
</select>
</td>
</tr>
<%
rs.movenext
loop
else
Response.write "<tr><td align=center colspan=2 height=25>还没有添加专题</td></tr>"
end if
rs.close
%>
CountClass=-1,但是后面两个专题都能读出来这是为什么?