K k209310 Registered User. Local time Today, 14:17 Joined Aug 14, 2002 Messages 184 Nov 13, 2002 #1 On a text box on a userform is there any way to restrict the user to enteronly numerical values and possibly a . (decimal) using VBA?
On a text box on a userform is there any way to restrict the user to enteronly numerical values and possibly a . (decimal) using VBA?
Fizzio Chief Torturer Local time Today, 14:17 Joined Feb 21, 2002 Messages 1,885 Nov 13, 2002 #2 A few ways - Set the field format to single / double in the table - Set the validation format for the control in form design eg >0 for instance - Use the isnumeric(me.nameofcontrol) method in the before_Update procedure of the control. The choice, as they say, is yours
A few ways - Set the field format to single / double in the table - Set the validation format for the control in form design eg >0 for instance - Use the isnumeric(me.nameofcontrol) method in the before_Update procedure of the control. The choice, as they say, is yours