Keypress --> avoid vbkeyreturn in textbox

  • Thread starter Thread starter Ina
  • Start date Start date
I

Ina

Hello guys,

I have a problem with the keypress event:


I would like to avoid an event --> goto next textbox using a
vbkeyreturn: but did not work any suggestion how to do that if it is
feasible.


thanks


Ina


If KeyAscii = vbKeyReturn Then
KeyAscii = 0
'msgBox ("No Enter")
End If


Or
If (KeyAscii = vbKeyReturn Or KeyAscii = 10) Then
msgBox "No ENTER key"
KeyAscii = 0
End If
 
Back
Top