Getting Combobox.Value in Access VBA
Asked Answered
B

1

11

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.

Bourbonism answered 6/10, 2011 at 20:36 Comment(0)
B
17

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

Bourbonism answered 8/2, 2012 at 14:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.