【发布时间】:2013-07-09 18:06:42
【问题描述】:
我正在尝试检查是否为组合选择了一个值,但真正的部分(未选择任何值)抛出一个错误,指出:There is an invalid use of the . (dot) or ! operator or invalid parentheses.
If (Len(MinCombo) = 0) Then
MsgBox "true"
Else
MsgBox "false"
End If
I have also tried this code but it evaluates to the false part when a value is selected:
If (IsNull(MinCombo) = True) Then
MsgBox "true"
Else
MsgBox "false"
End If
我正在使用 MS Access Professional Plus 2010
【问题讨论】:
-
我刚刚检查了
If Me.MinCombo.Value = vbNullString Then...,它是成功的。 -
仍然显示同样的错误