I am trying to get a ListBox working whereby a user can select multiple options and then click on a button and it adds these selections into a collection.
I can get it to a point whereby if a user is selecting for example, two things from the ListBox, and click the button, it will then two records into the Collection. However, it always adds these two records with the first selected item in the listbox. I.e. if 1 and 2 are selected, it creates two records both with 1 rather than one with 1 and the other with 2.
Is there a way of getting it to work as required?
I've tried various different ways, but cannot get it to work.
Many thanks in advance.