Hi,
I have this code in place in a on click event.
It moves the selected items from one list into another list.
But I want to alter it so that both this list and the target list have two columns (the second column being invisible on the form and containing a reference value that I will use in my code.)
Can someone tell me how I can alter this code?
If I merely alter the strval assignment to add a value after the existing ;, then that value shows up as a second value in the target object. I think I'm needing help with the syntax and possibly the correct properties for the target object.
Thanks
Dim ctl As Control
Dim varItm As Variant
Dim strVal As String
Dim strItems As String
Set ctl = Me!lstFindings
For Each varItm In ctl
'For Each varItm In ctl.ItemData
strVal = strVal & ctl.ItemData(varItm) & "; "
Next
ListSystemImpactedSelected.RowSourceType = "Value List"
ListSystemImpactedSelected.RowSource = strVal
I have this code in place in a on click event.
It moves the selected items from one list into another list.
But I want to alter it so that both this list and the target list have two columns (the second column being invisible on the form and containing a reference value that I will use in my code.)
Can someone tell me how I can alter this code?
If I merely alter the strval assignment to add a value after the existing ;, then that value shows up as a second value in the target object. I think I'm needing help with the syntax and possibly the correct properties for the target object.
Thanks
Dim ctl As Control
Dim varItm As Variant
Dim strVal As String
Dim strItems As String
Set ctl = Me!lstFindings
For Each varItm In ctl
'For Each varItm In ctl.ItemData
strVal = strVal & ctl.ItemData(varItm) & "; "
Next
ListSystemImpactedSelected.RowSourceType = "Value List"
ListSystemImpactedSelected.RowSource = strVal