Hi,
How do I force a listbox to select a record that has 2 columns?
Here is what I am using when the listbox has 1 column:
But it doesn't work when that listbox has 2 columns.
I tried this, but it's not working:
I cannot use the:
as this code only capture the selected item but does not iterate through it.
Thanks
How do I force a listbox to select a record that has 2 columns?
Here is what I am using when the listbox has 1 column:
Code:
For iList = 0 To Me.lboClient.ListCount
Me.lboClient = Me.lboClient.ItemData(Me.txtlboClientId + 1)
Next iList
I tried this, but it's not working:
Code:
For iList = 0 To Me.lboClient.ListCount
Me.lboClient = Me.lboClient.ItemData(Me.txtlboClientId + 1) & "," & Me.lboClient.Column(1, Me.txtlboClientId + 1)
Next iList
I cannot use the:
Code:
Me.lboClient.Selected(Me.txtlboClientId)
Thanks