Good morning,
Hopefully someone can help, and my objective is quite simple.
What I wish to achieve is to have a dynamic list (from items already added), which I can do. Then allow the user to select 'multiple' items from this list, submit the form, and then the ID's of the items selected from the list get entered into the database. Currently I have only been able to add the ID of the first item selected, it just ignored any other items selected.
So then what I would hope to achieve is to be able to create a recordset where the ID contains any of those entered from the list.
I hope that I have been clear.
Many thanks
Sam
Hopefully someone can help, and my objective is quite simple.
What I wish to achieve is to have a dynamic list (from items already added), which I can do. Then allow the user to select 'multiple' items from this list, submit the form, and then the ID's of the items selected from the list get entered into the database. Currently I have only been able to add the ID of the first item selected, it just ignored any other items selected.
So then what I would hope to achieve is to be able to create a recordset where the ID contains any of those entered from the list.
I hope that I have been clear.
Many thanks
Sam
Code:
<select name="related_news" size="4" multiple="multiple">
<%While (NOT rs_news.EOF)%>
<option value="<%=(rs_news.Fields.Item("news_id").Value)%>">
<%=(rs_news.Fields.Item("news_headline").Value)%>
</option>
<%
rs_news.MoveNext()
Wend
If (rs_news.CursorType > 0) Then
rs_news.MoveFirst
Else
rs_news.Requery
End If
%>
</select>