Forum Moderators: phranque
function passvalue(){
document.form1.select2.value=document.form1.select[document.form1.select.selectedindex].value;
}
<td> <select name="select" onchange="passvalue()">
<%
While (NOT Weekof.EOF)
%>
<option value="<%=(Weekof.Fields.Item("dweekofvalue").Value)%>"><%=(Weekof.Fields.Item("dweekofvalue").Value)%></option>
<%
Weekof.MoveNext()
Wend
If (Weekof.CursorType > 0) Then
Weekof.MoveFirst
Else
Weekof.Requery
End If
%>
</select>
Thank you,
Bob
By the way, I think you can change
<%=(Weekof.Fields.Item("dweekofvalue").Value)%>to just
<%=Weekof("dweekofvalue")%>If you wanted to cut down on code..