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

Outputing all names in that group name..??

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH

StrMID = "SELECT * FROM specs WHERE m_group=" & 1

rs = my_conn.Execute(StrMID)



m_group has two model names I want to output for that group, how would I do this?

If I just do Response.Write(rs("model_name")) it just prints out the first one in that group it comes to, and I want it to print out all of them with that group id..

Thanks in Advance..

Jason
 
try doing

while not rs.eof
Response.Write(rs("model_name"))
rs.movenext
loop

hope this helps
Dave

Theres nothing worse than an idea when its the only one we have!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top