Hello again,
I am trying to insert entries into my drop-down box, based on the values in my database. I know the SQL SELECT statement is working.... but no entries are getting put into the dropdown box. Click the down arrow in the box and there are not any options to select.
Can anyone help me with the <option value= portion of this ASP?
Thanks again. Several of you have helped me with various problems and I appreciate it.
John
_____________________________________________________
sql = "SELECT DISTINCT DateClosed FROM LoadHist ORDER BY DateClosed"
set rs = createobject("adodb.recordset"
rs.open sql,conn, adOpenStatic, adLockReadOnly, adCmdText
%>
<SELECT NAME="YR" size="1">
<option>Select a year</option>
<%
Do While NOT rs.eof
%>
<option value="<%=(rs.Fields.Item("DateClosed"
.Value)%>">
</option>
</SELECT>
<%
rs.MoveNext()
Loop
%>
I am trying to insert entries into my drop-down box, based on the values in my database. I know the SQL SELECT statement is working.... but no entries are getting put into the dropdown box. Click the down arrow in the box and there are not any options to select.
Can anyone help me with the <option value= portion of this ASP?
Thanks again. Several of you have helped me with various problems and I appreciate it.
John
_____________________________________________________
sql = "SELECT DISTINCT DateClosed FROM LoadHist ORDER BY DateClosed"
set rs = createobject("adodb.recordset"
rs.open sql,conn, adOpenStatic, adLockReadOnly, adCmdText
%>
<SELECT NAME="YR" size="1">
<option>Select a year</option>
<%
Do While NOT rs.eof
%>
<option value="<%=(rs.Fields.Item("DateClosed"
</option>
</SELECT>
<%
rs.MoveNext()
Loop
%>