I have some code on a page. I know for a fact that all the variables are pulling the correct information from the recordsets, because I did some basic response.write to see if they were showing up... however, when the drop down is populated, they are not pulling the "selected" up... let me know if anyone can help. It may be due to the Loops that I have...just not sure how to fix it. thanks
<%
While ((Repeat3__numRows <> 0) AND (NOT rsFOOD.EOF))
%>
<%
Dim subtotal
subtotal=FormatNumber(rsFOOD("ITEMPrice"),2)*FormatNumber(rsFOOD("ITEMQuantity"),2)%>
<tr>
<td class="action_view"><select name="INVItem<%=rsFOOD("ITEMID")%>" id="INVItem<%=rsFOOD("ITEMID")%>">
<% Do While Not rsFOOD2.EOF%>
<% Dim SelectValue
SelectValue=rsFOOD("ITEMINVID")
%>
<option value="<%=rsFOOD2("FOODID")%>" <%If SelectValue=rsFOOD2("FOODID") Then%>selected<%End If%>><%=rsFOOD2("FOODName")%></option>
<%rsFOOD2.MoveNext%>
<%Loop%>
<%rsFOOD2.Requery%>
</select></td>






Bookmarks