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

combo box populated from a table?

Status
Not open for further replies.

bookouri

IS-IT--Management
Feb 23, 2000
1,464
US
How can I populate a Combo Box from a table, select a value, and fill in a text field.

some of my selections for the combo box might be retrieved from tables with a large number of rows.

thanks for any info...

 

bookouri,

This should loop through your recordset.

fengshui_1998

<%
Response.write &quot;<select name='dropbox'>&quot;
Do while NOT rs.eof

response.write &quot;<option value='&quot; & rs(&quot;field1&quot;) & _
&quot;'>&quot; & rs(&quot;field1&quot;) & &quot;</option>&quot;
rs.movenext

Loop
Response.write &quot;</select>&quot;
%>

 
thanks, Ill see if I can make it work. I have to figure out how to use a drop down to allow the user to select from a table.. for example an employee ID number, then grab that IDnumber to use as a parameter for something like..
is there a better way to do that than with a combo box?

any input would be welcome..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top