Hi,
I have two multi select list boxes on my form. I want the user to be able to select one or multiple items in the first listbox and move them to the second listbox.
Accomplished this with:
Dim ctl As Control
Dim varItm As Variant
Dim strVal As String
Set ctl = Me!listSysImpacted
For Each varItm In ctl.ItemsSelected
strVal = strVal & ctl.ItemData(varItm) & "; "
Next
ListSystemImpactedSelected.RowSourceType = "Value List"
ListSystemImpactedSelected.RowSource = strVal
Now, I'm stuck. What if the user wants to deselect an item from the second listbox. How can I remove one or multiple items from the second listbox if the user wants?
TIA
Have A Great Day!!!,![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
Nathan
Senior Test Lead
I have two multi select list boxes on my form. I want the user to be able to select one or multiple items in the first listbox and move them to the second listbox.
Accomplished this with:
Dim ctl As Control
Dim varItm As Variant
Dim strVal As String
Set ctl = Me!listSysImpacted
For Each varItm In ctl.ItemsSelected
strVal = strVal & ctl.ItemData(varItm) & "; "
Next
ListSystemImpactedSelected.RowSourceType = "Value List"
ListSystemImpactedSelected.RowSource = strVal
Now, I'm stuck. What if the user wants to deselect an item from the second listbox. How can I remove one or multiple items from the second listbox if the user wants?
TIA
Have A Great Day!!!,
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
Nathan
Senior Test Lead