-
How do you get values from the selected item in a combo box?
I use this for a listbox but a combo doesn't have a .selected method.
Code:
For L = 0 To results.ListCount - 1
If results.Selected(L) Then
txtsomething = results.list(L)
End If
Next
Sure someone knows the answer since it is an easy question.
-
Just use the text property.
-
-
Combo Box
You can also use the ListIndex to get the selected
Index. If you need the ItemData value for the selected
item use:
Id = Combo1.ItemData(Combo1.ListIndex)
Corby Nichols