I have a listbox that is multiselect. As I'm grabbing the keys in the first column, I want to grab the descriptions in the second column to cram into a string for display purposes.
Here's the code to grab the first column:
Since this code only grabs the first column data, is it possible to use a reference to the second column to get at it's information, to the effect of:
I know this code won't work, because it won't recognize the "Column(1)" after the itemdata property and it errors out. Not sure how to make it work, even if it's possible . . .
Any help is appreciated!
Here's the code to grab the first column:
Code:
For Each varItem In Me.lstOtherCriteria.ItemsSelected
sID = sID & Me.lstOtherCriteria.ItemData(varItem) & ";"
Next varItem
Since this code only grabs the first column data, is it possible to use a reference to the second column to get at it's information, to the effect of:
Code:
me.lstOtherCriteria.ItemData(varItem).Column(1)
I know this code won't work, because it won't recognize the "Column(1)" after the itemdata property and it errors out. Not sure how to make it work, even if it's possible . . .
Any help is appreciated!