Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reuse RecordSet

Status
Not open for further replies.

TheCandyman

Technical User
Sep 9, 2002
761
US
Dim myConn2,myPath2
Set myConn2 = Server.CreateObject("ADODB.Connection")
myPath2 = Server.MapPath("Accessdb/WEBDB.mdb")
myConn2.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & myPath2 & " ;"

Dim rs2
Set rs2 = Server.CreateObject("ADODB.RecordSet")

Dim mySQL2
mySQL2 = "SELECT * FROM WEB_CODE
rs2.Open mySQL2, myConn2

do until rs2.EOF
response.write rs2("Part")
rs2.MoveNext
loop


************
My question is, once i go through a loop, how do i reuse the recordset to do a different search. i tried rs.BOF to start at begining of file but it doesn't like that... any ideas??
 
rs.movefirst

_________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
Have you tried Rs.MoveFirst? NOt sure if it helps you at all but it should take it to the begining of the Rs again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top