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

How to display the contents of a drop-down list in a column structure ?

Status
Not open for further replies.

leifoet

Technical User
Jan 31, 2016
206
BE
… the table fields should be like this :
(x and i are spaces in the columns)

(option 1) AAAAxxxxxi BBBBBBBBxx CCCCxxxxxxxx DDDDxxxxxxxi EEEEE
(option 2) AAAAAAxxx BBBxxxxxxxx CCxxxxxxxxxxi DDDDDDDDD
(option 3) AAAAAAAAx xxxxxxxxxxx CCCCCCCCxxxi xxxxxxxxxxxxx EEEE
(option ....

Where should the code below be adjusted to become this structure?

<select NAME="ActId">

<%
rs.MoveFirst
Do While Not rs.EOF
%>

<option style="font-family: Arial, Helvetica, sans-serif;color:#000000;" value="<%=rs("ActId")%>"><%=rs("Field_A")&" "&rs("Field_B")&" "&rs("Field_C") ...
%></p></option>

<%
rs.MoveNext
Loop
%>
</select>

Thanks for tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top