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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Select Statement To Return Multiple Rows

Status
Not open for further replies.

kwil38

Programmer
Jan 20, 2005
49
US
I've got a select statement in a .asp page which retrieve information from a view. In some cases, the query will return more than 1 row. When this happens, I need to read all of the rows returned, not just the first row. How can I do this?

Thanks!
 
how are you displaying your recordset...

you need to loop through all your recordset to display all the values...

may be using something like...

do until rs.EOF
'write you data here
rs.Movenext
loop


-DNG
 
Yes, that's exactly what I needed. Thanks DNG!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top