I have recently changed a list box to Extended multi-select and other bits of code which reference it are now breaking. I have no problem getting at the data values in the list box, but haven't been able to figure out how to SET the value of the list box programmatically.
I have form with two lists and when one is selected (no multi-select), the after update sets the value of the other list (with multi) to a value in one of the columns in the first list box.
Before I switched the list box to multi, simply setting the value of that box would highlight the related row - I then call that list box's after update subroutine and the subform below it filters to the details of the selected item.
Now, since the multiselect list box is forced null by access, I cannot get the list box to highlight the row with the bound value, so when I call the after_update, the code breaks because I cannot get it to hold a specific value.
I realize I can iterate through the collection, but how do I set the value of the list box so the row I want will be highlighted and I can then pass on the filter value to my subform?
I have form with two lists and when one is selected (no multi-select), the after update sets the value of the other list (with multi) to a value in one of the columns in the first list box.
Before I switched the list box to multi, simply setting the value of that box would highlight the related row - I then call that list box's after update subroutine and the subform below it filters to the details of the selected item.
Now, since the multiselect list box is forced null by access, I cannot get the list box to highlight the row with the bound value, so when I call the after_update, the code breaks because I cannot get it to hold a specific value.
I realize I can iterate through the collection, but how do I set the value of the list box so the row I want will be highlighted and I can then pass on the filter value to my subform?