don't want a "-" in text box

cliff7376

Registered User.
Local time
Today, 18:12
Joined
Oct 10, 2001
Messages
107
how do I check my text box value see if i have a "-" in it.?

Thank you
 
Code:
    If InStr(Text1.Value, "-") Then
        MsgBox "No dang -'s"
    End If

Substitute Text1 with your textbox's name. You can stick this snippet in a command button validation or in the textbox's BeforeUpdate Event.
 

Users who are viewing this thread

Back
Top Bottom