newkid
08-18-2004, 09:54 PM
Never mind, I just need to learn how to type :o
(See answer below, just in case I'm not doing to correctly pls)
ok here's the drop down box for my add screen (works fine)
<select name="Salutation" size="1">
<option selected="selected">Salutation </option>
<option value="Mr">Mr. </option>
<option value="Ms">Ms. </option>
<option value="Mrs">Mrs. </option>
</select>
And here's what I have on my modify screen (works fine)
<input type="text" name="Salutation" value="<%=(rsUnProc.Fields.Item("Salutation").Value)%>" size="32">
what I want to do is have a drop down on my modify screen (vice an input box), but I'm not sure how to set up the select to have an initial value of <%=(rsUnProc.Fields.Item("Salutation").Value)%>
Thanks in advance for any help
J.C.
To learn is a good thing and today I hope to learn something new!!
ANSWER:
(If this is not the correct way please let me know but it did work)
<select name="Salutation" size="1">
<option selected="selected"><%=(rsUnProc.Fields.Item("Salutation").Value)%></option>
<option value="Mr">Mr. </option>
<option value="Ms">Ms. </option>
<option value="Mrs">Mrs. </option>
</select>
(See answer below, just in case I'm not doing to correctly pls)
ok here's the drop down box for my add screen (works fine)
<select name="Salutation" size="1">
<option selected="selected">Salutation </option>
<option value="Mr">Mr. </option>
<option value="Ms">Ms. </option>
<option value="Mrs">Mrs. </option>
</select>
And here's what I have on my modify screen (works fine)
<input type="text" name="Salutation" value="<%=(rsUnProc.Fields.Item("Salutation").Value)%>" size="32">
what I want to do is have a drop down on my modify screen (vice an input box), but I'm not sure how to set up the select to have an initial value of <%=(rsUnProc.Fields.Item("Salutation").Value)%>
Thanks in advance for any help
J.C.
To learn is a good thing and today I hope to learn something new!!
ANSWER:
(If this is not the correct way please let me know but it did work)
<select name="Salutation" size="1">
<option selected="selected"><%=(rsUnProc.Fields.Item("Salutation").Value)%></option>
<option value="Mr">Mr. </option>
<option value="Ms">Ms. </option>
<option value="Mrs">Mrs. </option>
</select>