Simple code to insure only numbers are entered into a text box.
Simple code to insure only numbers are entered into a text box.
Rate Simple code to insure only numbers are entered into a text box.
(1(1 Vote))
'When the user presses a key, check to insure the KeyAscii value is:
' Between 48 - Ascii 0
' 57 - Ascii 9
If KeyAscii < 48 Or KeyAscii > 57 Then
KeyAscii = 0 '0 is Ascii Null
End If
End Sub
Simple code to insure only numbers are entered into a text box. Comments
No comments yet — be the first to post one!
Post a Comment