Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

KeyDown event

Posted on 2013-11-22
3
Medium Priority
?
430 Views
Last Modified: 2013-11-22
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
Comment
Question by:DatabaseDek
3 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 total points
ID: 39670140
did you set the forms Key Preview property to Yes?
0
 

Author Closing Comment

by:DatabaseDek
ID: 39670167
Yes,   .......................................... Of course I did.





Thanks..
0
 
LVL 75
ID: 39670273
LOL
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question