Any help as to how to use the selected item in one comobox and use the item to do something else, like pass the item into a sql question and display the result into the second combobox?
Printable View
Any help as to how to use the selected item in one comobox and use the item to do something else, like pass the item into a sql question and display the result into the second combobox?
This will get the current item from the ComobBox.
Code:MyString = Combo1.Text
Is it the same as the item I have selected in the combobox? This is because I don't seem to get what I have selected?
You select the item.
It should be as Megatron told you. As soon as you click the item, it goes into the Combo textbox and tells you what item is selected from there.Code:Private Sub Combo1_Click()
Msgbox "Item selected: " & Combo1.text & ""
End Sub