I have an ASP page that has a list box that allows multiple selections. I can take those items selected and submit them to my SQL table. Of course they are submitted as: selection1, selection2, selection3 and so on.
I can also pull those values back into my list box in an update form by using HTML and ASP code such as:
However it of course writes them in the top row of the list box and forces the box to be too wide. The list box on the update form has all of the same values as the list box in the submission form.
How do I make the update form load with the values in the list box selected as they were when the record was first submitted?
I can also pull those values back into my list box in an update form by using HTML and ASP code such as:
Code:
<option selected value="<% =rs("division") %>"><% =rs("division") %></option>
How do I make the update form load with the values in the list box selected as they were when the record was first submitted?
Comment