Dynamic List/Menu ASP Selection won't go to record
Hi,
I have an update record form and I need to go directly to a record by selecting the date from a drop down box. (There is only 1 date per record)
The list/menu picks up the dates correctly, but does not do anything more.
The code is:
<select name="DateSelector" id="DateSelector">
<option value="0" <%If (Not isNull((rsResults.Fields.Item("Date").Value))) Then If ("0" = CStr((rsResults.Fields.Item("Date").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%>>Select Date...</option>
<%
While (NOT rsResults.EOF)
%><option value="<%=(rsResults.Fields.Item("Date").Value)%>" <%If (Not isNull((rsResults.Fields.Item("Date").Value))) Then If (CStr(rsResults.Fields.Item("Date").Value) = CStr((rsResults.Fields.Item("Date").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(rsResults.Fields.Item("Date").Value)%></option>
<%
rsResults.MoveNext()
Wend
If (rsResults.CursorType > 0) Then
rsResults.MoveFirst
Else
rsResults.Requery
End If
%>
</select>
Do I need a got to record button as weel?
Any help greatly appreciated.
John
[Moved to Dreamweaver Application Development forum by moderator]
