Jan 11 2017, 10:52 AM
I need some help with listboxes and how to order by selected items.
Here's what I have:
List box one containing:
List box 2 gets items from first list box by user selecting them (multi select)
I need list box 2 to be order by what the user selects
IE user selects from listbox 1 in this order
Listbox 2 would be
Is there a way to do this?
Jan 11 2017, 10:59 AM
What do you have in the MultiSelect property: Simple or Extended?
Jan 11 2017, 11:03 AM
listboxes set to Simple
Jan 11 2017, 11:27 AM
Okay, then. I would suggest to use the Click event of the Listbox to store the order of the selected items in a variable and then modify your code to use it when you move the selections to the second listbox.
Hope it helps...
Jan 16 2017, 12:53 PM
I went with a little different idea. I'm using a temp table between the 2 listboxes for sorting. It will handle selected and deselected items and keep them sorted.
thanks for your help
Jan 16 2017, 01:21 PM
Congratulations! Glad to here you found a solution. Good luck with your project.
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here