' If c > "~" Then
' MsgBox "汉字"
' ElseIf IsNumeric(c) Then
' MsgBox "数字"
' ElseIf (c >= "A" And c <= "Z") Or (c >= "a" And c <= "z") Then
' MsgBox "英文"
' End If
我试了一下好象不行。
Private Sub 文本0_BeforeUpdate(Cancel As Integer)
If IsNumeric(Me.文本0) Then
MsgBox "数字"
ElseIf (Me.文本0 >= "A" And Me.文本0 <= "Z") Or (Me.文本0 >= "a" And Me.文本0 <= "z") Then
MsgBox "英文字母"
ElseIf Me.文本0 > "~" Then
MsgBox "汉字"
Else
MsgBox "~!@#$%^&*()_+|符号"
End If
End Sub