<%set rs=server.createObject("adodb.recordset")
sqlcar="select a,b from table where id=12"
rs.open sqlcar,cn,3,3%>
<select name="name" size="1">
<%while not rs.eof%>
<option value="<%=rs("a")%>"><%=rs("a")%></option>
<%rs.movenext
wend
%>
</select>
我想在下面引用这个数据集,可是数据指针到了最尾了。怎么将指针移到首条记录上?rs.first,不对呀?
<select name="name" size="1">
<%rs.first%>
<%while not rs.eof%>
<option value="<%=rs("b")%>"><%=rs("b")%></option>
<%rs.movenext
wend
%>
</select
rs.previe……
忘了怎么拼了,反正是next的反义词,你查一下英语字典吧!
汗||| 不好意思!
MoveFirst