我需要在编码方面的帮助
假如textbox不为空,则Msgbox“无效”
我知道empty是"“,但是我怎么写not empty呢?谢谢!
发布于 2021-05-11 13:25:57
非常基本的问题。试试TEXTBOX<>""。
Private Sub CommandButton1_Click()
If Me.TextBox1 <> "" Then
MsgBox "Invalid"
End If
End Sub您还可以使用LEN()函数。
If Len(Me.TextBox1) > 0 Then
MsgBox "Invalid"
End Ifhttps://stackoverflow.com/questions/67480949
复制相似问题