Creating a multiple-select listbox - Please Help!!

Results 1 to 2 of 2

Thread: Creating a multiple-select listbox - Please Help!!

  1. #1
    Join Date
    Dec 1969
    Posts
    219

    Default Creating a multiple-select listbox - Please Help!!

    Hi,<BR> I need to create a multiple select listbox (not a pull-down, not a drop-down). And then I need to update a table in the database with each selection of the listbox entered as a seperate record. Please help. Thanks.

  2. #2
    Join Date
    Dec 1969
    Posts
    1,671

    Default RE: Creating a multiple-select listbox - Please He

    The first part is easy:<BR><BR> &#060;SELECT NAME="lstCat" size=3 multiple&#062;<BR><BR>* size represents the number of lines visible in the box. If size=1 you will get a pull-down list box. To make it single select take out &#039multiple&#039<BR><BR>The second part you will have to loop through every element in the list box, if selected insert your record. I don&#039t have an example of this but it would look something like:<BR><BR>For x=0 to lstCat.Count<BR> If lstCat(x)=&#039 1&#039 Then<BR> INSERT<BR> End If<BR>Next

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •