Getting Combobox.Value in Access VBA

I have this code:

If Me.Combobox.Value = "My Text" Then 

As I want to check, if only β€œMy Text” is the only value selected, the conditional value is skipped.

I also tried

 Me.Combobox.Column(1) 

and

 Me.Combobox.Text 

I believe that there is a simple solution that I just don’t notice.

+6
source share
1 answer

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

+10
source

Source: https://habr.com/ru/post/898793/


All Articles