Id Validation

mis

Registered User.
Local time
Today, 14:46
Joined
Dec 15, 2003
Messages
55
I have an Id field and I would like to prevent anyone from typing in letters just numbers. the field has been set as a text field and is linked to others.??
 
On the KeyPress event:

Code:
If KeyPress < 48 Or KeyPress > 57 Then KeyPress = 0
 
Thanks

Is this possible inside the validation field??
 
mis said:
Is this possible inside the validation field??
Then you need to create an input mask for that field. Check the help files for more info on using Input Masts. Something like this would force a two digit numeric entry...

00;;_

As Mile-O-Phile suggested, using an event will allow you more options like customizing user error messages. Search the forum for the keyword "KeyPress" and the user "ghudson" for I know I have posted how to use the keydown or keypress event to not allow numbers or letters.

HTH
 

Users who are viewing this thread

Back
Top Bottom