Keypress --> avoid vbkeyreturn in textbox

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top