Your code is incorrect -- the SELECT tag does not take a VALUE clause. What you need to do is dynamically set the SELECTED clause of each OPTION tag, based on the value of M.oconthow. Here's some sample code:
<SELECT NAME="oconthow" SIZE="1"> <OPTION VALUE="Work Telephone" <%=IIF(M.oconthow='Work Telephone', 'SELECTED', '')%>>Work Telephone</OPTION>
<OPTION VALUE="Home Telephone" <%=IIF(M.oconthow='Home Telephone', 'SELECTED', '')%>>Home Telephone</OPTION> <OPTION VALUE="Cell Telephone" <%=IIF(M.oconthow='Cell Telephone', 'SELECTED', '')%>>Cell Telephone</OPTION> </SELECT>
|
FoxWeb Support Team support@foxweb.com email |
Sent by Joe Goldsmith on 07/15/2002 09:20:08 AM:
I have an edit form that works well for everything else other than option boxes that do not save chosen options. I have removed the SELECTED option and it still does not work. Would someone have a look at the snippit below and tell me what I'm doing wrong please?
<TR>
<TD>
<SELECT NAME="oconthow" SIZE="1" VALUE="<%=TRIM(M.oconthow)%>">
<OPTION VALUE="Work Telephone" SELECTED>Work Telephone</OPTION>
<OPTION VALUE="Home Telephone">Home Telephone</OPTION>
<OPTION VALUE="Cell Telephone">Cell Telephone</OPTION>
</SELECT>
</TD>
</TR>
Joe