I have some code on the change event of my textboxes, but I only want it to fire if the user does NOT hit either the delete or enter key. I tried moving my code to the KeyPress event and prefacing it with:
However, then my code no longer works properly (even if I comment out the backspace/delete stuff and just copy it exactly from the change event). Is there any way to refer to the backspace and delete keys in the change event? Thanks.
Code:
if KeyAscii <> 8 or KeyAscii <> 127 then
'my code here
end if