0

我正在尝试检查是否为组合选择了一个值,但真正的部分(未选择任何值)抛出一个错误,指出: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

4

1 回答 1

0

我是这样走的:

Me.MinCombo.SetFocus
If (Me.MinCombo.selText ="") Then
  MsgBox "true"
Else
  MsgBox "false"
End If
于 2013-07-09T19:11:45.157 回答