i need to populate an input with a value that is taken from a dropdown menu. the dropdown menu is populated by a look-up table.
here is the dropdown menu:
the input box is straight foward:
any help on this would be great.
thanks.
Ah dinnae ken...
here is the dropdown menu:
Code:
<select name="Edit" id="Edit">
<%
sql = "SELECT * FROM [Sales] ORDER BY [Sales Code] ASC;"
Set rs = obj_CN.Execute(sql, adBoolean)
' Build the menu
While Not rs.EOF
strSalesID = rs("Sales_ID")
strSales = rs("Sales code")
strSalesDescription = rs("Sales Description")
strOption = "<option value=""" & strSalesID & """#Selected#>" & strSales & " - " & strSalesDescription & "</option>"
Response.Write vbtab & strOption & vbcrlf
rs.MoveNext
Wend
%>
</select>
the input box is straight foward:
Code:
<input name="EditSalesDescription" id="EditSalesDescription" type="text" size="10" value="" >
any help on this would be great.
thanks.
Ah dinnae ken...