G
Gert Albertse
I retrieve the recordset RS("SelectedMultiDisabilityEvent") form a
table. The data type is text.
When I run the next code:
WHILE NOT RS.EOF
Response.Write RS("SelectedMultiDisabilityEvent") & "<br>"
RS.MOVENEXT
WEND
I get the output:
Yes
No
No
Yes
But when I modify the code:
<select name="SelectedMultiDisabilityEvent" size="1">
<%IF RS("SelectedMultiDisabilityEvent") = "Yes" THEN%>
<option selected value="Yes">Yes</option>
<option value="No">No</option>
<%ELSE%>
<option value="Yes">Yes</option>
<option selected value="No">No</option>
<%END IF%>
</select>
I get the ouput:
Yes
No
No
No
It seems as if it only checks for the first recordset.
table. The data type is text.
When I run the next code:
WHILE NOT RS.EOF
Response.Write RS("SelectedMultiDisabilityEvent") & "<br>"
RS.MOVENEXT
WEND
I get the output:
Yes
No
No
Yes
But when I modify the code:
<select name="SelectedMultiDisabilityEvent" size="1">
<%IF RS("SelectedMultiDisabilityEvent") = "Yes" THEN%>
<option selected value="Yes">Yes</option>
<option value="No">No</option>
<%ELSE%>
<option value="Yes">Yes</option>
<option selected value="No">No</option>
<%END IF%>
</select>
I get the ouput:
Yes
No
No
No
It seems as if it only checks for the first recordset.