I have this code:
If Me.Combobox.Value = "My Text" Then
As I want to test if "My Text" is the only value selected, however, the conditional is skipped.
I have also tried
Me.Combobox.Column(1)
and
Me.Combobox.Text
I believe there is some simple solution that I'm just overlooking.
Simply using Object ID = me. combo0. value should also work.
A ComboBox displays a text box combined with a ListBox, which enables the user to select items from the list or enter a new value. The user can type a value in the text field or click the button to display a drop down list. You can add individual objects with the Add method.
Me.Combobox.Column(1)
decided to work as I retested the possibilities.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With