Sariff
asked on
Restrict characters in Text Box
I have text boxes that restrict the characters that are entered. The code is below:
If Me.TextBoxName.Value Like "*[!A-Z]*" Then
MsgBox
Cancel = True
End If
I need it to allow hyphens also...
-Sariff
If Me.TextBoxName.Value Like "*[!A-Z]*" Then
MsgBox
Cancel = True
End If
I need it to allow hyphens also...
-Sariff
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I found my answer. Thanks!
ASKER