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

Populate list box with the values from the recordset

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi,

I have a recordset that returns three columns

params="Select LastName, FirstName, Initial from Names"
Set rs = db1.Execute(get_params)

Is it possible to populate the list box with the values from the recordset so that the list would contain the following entries:

Smith, John (JS)
Smith, Bob (BS)
Smith, Ted (TS)

Can I assign the recordset values to the array?

Any help would be greatly appreciated.

Thanks.
 
sure

Code:
while not rs.eof

response.write "<option value="" & rs(0) & "," & rs(1) & "">" & rs(0) & "," & rs(1) & "(" & rs(2) & ")"


Bastien

Cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top