T
trevorC via AccessMonster.com
Can you help ?
I'm trying to limit the user input to HEX only values, this works ok but they
can't use backspace to undo an incorrect entry if they type in the wrong
value.
How can i resolve this issue and keep the BACKSPACE to undo as required.
Dim strChar As String
strChar = UCase$(Chr$(KeyAscii))
If (strChar >= "0" And strChar <= "9") Or (strChar >= "A" And_
strChar <= "F") Or (strChar = "n") Or (strChar = "\") Or_
(strChar = "/") Or (strChar = "{BS}") Then
'do nothing
Else
' don't accept key input
KeyAscii = 0 ' cancel keystroke
End If
I'm trying to limit the user input to HEX only values, this works ok but they
can't use backspace to undo an incorrect entry if they type in the wrong
value.
How can i resolve this issue and keep the BACKSPACE to undo as required.
Dim strChar As String
strChar = UCase$(Chr$(KeyAscii))
If (strChar >= "0" And strChar <= "9") Or (strChar >= "A" And_
strChar <= "F") Or (strChar = "n") Or (strChar = "\") Or_
(strChar = "/") Or (strChar = "{BS}") Then
'do nothing
Else
' don't accept key input
KeyAscii = 0 ' cancel keystroke
End If