If you want to block non-numeric characters from being entered into a text box, you will need to use the Keypress event and examine each character that is entered.
sub text1_keypress(asciikey as integer) select case asciikey case 8, 13, 46, 48 to 57 'backspace, <Enter>, period, 0 to 9 case else asciikey = 0 'Some other character end select
----- Original
Message ---- From: Manual Camaro <macamaro2005yahoo.com> To: helpwithvbyahoogroups.com Sent: Monday, October 22, 2007 8:51:16 PM Subject: [helpwithvb] Text Box
Help me Please. I need the Text box only accepts numbers. Please letme know how to do that.