在Access VBA中获取Combobox.Value [英] Getting Combobox.Value in Access VBA
本文介绍了在Access VBA中获取Combobox.Value的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个代码:
如果Me.Combobox.Value =My TextThen
因为我想测试我的文本是否是唯一选择的值,
我也尝试过
Me.Combobox.Column(1)
和
Me.Combobox.Text
我相信有一些简单的解决方案,我只是忽略。 / p>
解决方案
Me.Combobox.Column(1)
重新测试了可能性。
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.
解决方案
Me.Combobox.Column(1)
decided to work as I retested the possibilities.
这篇关于在Access VBA中获取Combobox.Value的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文