|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hey all,
I have what may be a simple question, how do I loop through a set of records twice? Here's a snapshot of what I have. Thanks. Any help would be appreciated. x = 0 do while rs.EOF = False dim i i = x %> <input type=text name="FirstName<%=i%> " value="<%=rs("Child_First")%>"> 'I'd like to be able to have these input fields posted twice for each record. <% x = x +1 rs.movenext loop > |
|
#2
|
|||
|
|||
|
As long as your recordset supports bookmarks, you can use rs.movefirst to go back to the start of the recordset.
Certain cursor types & locations won't allow this, refer to the ADO recordset documentation for details. |
|
#3
|
|||
|
|||
|
http://www.w3schools.com/ado/ado_ref_recordset.asp
for easy references and [perhaps] clearer explanations of the objects properties and methods |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Loop twice through records. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|