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

populating drop down menu with values from access DB

Status
Not open for further replies.

ifeyinwa

Programmer
Mar 26, 2003
112
US
I would like to populate my drop down menu on an asp page with values from a database-ACCESS.
below is what i have so far , it gives me no errors but the drop down is not being populated.pls what am i not doing right???. New too this functionality

<select size="2" name="AUserName">
<OPTION value=0>--choose an employee
<%
Set RS = conn.Execute("SELECT Access_UserName FROM flt_adm")
Response.write SQLstmt

Do Until RS.EOF
%>
<OPTION Value="<%=RS("Access_UserName")%>"></option>
<%
RS.MoveNext
Loop
RS.Close
%>
</SELECT>

thanks as always ify
 
thanks Ifigured out my error used this
<OPTION Value="<%=RS("Access_UserName")%>"></option
instead of
<OPTION Value="<%=response.write rs("Access_UserName")%>"></option
thanks!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top