Arrow Key

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,
Do you mind to advise me how to disable the arrow key for browsing thru
the records after pressing? Thank you for your kindness
 
On the Events tab for the form, set KeyPreview to Yes. In the form's
KeyPress event use the following code:

If KeyCode >= 37 And KeyCode <= 40 Then
KeyCode = 0
End If

This will replace the arrow keys' KeyCodes with 0.
 
Hi all,
I wonder if there are any ways to disable only the browsing record
feature. Actually, I'd like to use the arrow keys to go to different fields
 
In that case, I believe the Cycle property of the form may be what you're
after. On the Other tab of the form's Properties dialog, set Cycle to
Current Record. This will keep you in the current record as you move from
control to control instead of taking to the next record as you leave the
last control.
 

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

Back
Top