I retrieve the recordset RS("SelectedMul tiDisabilityEve nt") form a
table. The data type is text.
When I run the next code:
WHILE NOT RS.EOF
Response.Write RS("SelectedMul tiDisabilityEve nt") & "<br>"
RS.MOVENEXT
WEND
I get the output:
Yes
No
No
Yes
But when I modify the code:
<select name="SelectedM ultiDisabilityE vent" size="1">
<%IF RS("SelectedMul tiDisabilityEve nt") = "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.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
table. The data type is text.
When I run the next code:
WHILE NOT RS.EOF
Response.Write RS("SelectedMul tiDisabilityEve nt") & "<br>"
RS.MOVENEXT
WEND
I get the output:
Yes
No
No
Yes
But when I modify the code:
<select name="SelectedM ultiDisabilityE vent" size="1">
<%IF RS("SelectedMul tiDisabilityEve nt") = "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.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment