Solved

KeyDown event

Posted on 2013-11-22
3
415 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 500 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2016 7 35
Field Properties in the DB Vs Bound Control on the form 9 33
Why get error when delete all records on a sub-form 2 16
Modify report 8 8
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

809 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