hrezs
hrezs

Reputation: 782

Getting Combobox.Value in Access VBA

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.

Upvotes: 11

Views: 86345

Answers (1)

hrezs
hrezs

Reputation: 782

Me.Combobox.Column(1) decided to work as I retested the possibilities.

Upvotes: 17

Related Questions