Hi All. Have a situation where a multiselect list box shows (depending on user's previous choices) all accounts that currently hold a particular stock, or all active accounts, full stop. For a new stock market trade transaction, I want the user to be able to select only the few accounts, likely less than 10, that are relevant to the current transaction.
Thing is, in either case the initial number of items in the list box would be LARGE -- over 100 at best if limited by holdings, conceivably several hundred if not. So, now comes my question. After the user has made the necessary picks, can I do something with code (launched by a button, probably) that would "adjust" what is displayed in the listbox to only selected items, so user can see he/she has indeed selected all the relevant accounts and only those? Looked at properties for the listbox but didn't find a filter property that would work beyond what I could have done with the RowSource property in the first place (at which point I unfortunately had no idea what listed items the user would select). Could I maybe change the SELECT statement using SelectedItems as a criterion, then refresh the listbox?
Help me think through this, please. Until the user makes his/her choices, can see no way to limit the listbox population below those inconveniently large numbers. And I can't think of any way to make those choices without having to weed through big numbers of possible items.