• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 434
  • Last Modified:

KeyDown event

I have the following in a number of subform's KeyDown event:

If KeyCode = vbKeyPageUp Or KeyCode = vbKeyPageDown Then
    KeyCode = 0
End If

This stops a user moving to a new record by pressing the pagedown or pageup buttons

I cannot get it to work in a pop up form
0
Derek Brown
Asked:
Derek Brown
1 Solution
 
Rey Obrero (Capricorn1)Commented:
did you set the forms Key Preview property to Yes?
0
 
Derek BrownMDAuthor Commented:
Yes,   .......................................... Of course I did.





Thanks..
0
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
LOL
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now