Lynn
October 26th, 1999, 06:33 AM
Hi, I have create some textboxes and had performed the input validation to block all other keys except from A to Z. However, now I cannot use the backspace key. How can I alter the code so that that key can be used again? The code is as follows:
Private Sub Textbox1(KeyAscii As Integer)
Dim StrValid as String
StrValid = "ABCD....Z"
If InStr(StrValid, Chr(KeyAscii)) = 0 Then
KeyAscii = 0
End If
End Sub
Private Sub Textbox1(KeyAscii As Integer)
Dim StrValid as String
StrValid = "ABCD....Z"
If InStr(StrValid, Chr(KeyAscii)) = 0 Then
KeyAscii = 0
End If
End Sub