Link to home
Start Free TrialLog in
Avatar of dhemple
dhempleFlag for United States of America

asked on

Turn off page down/up navigation

Hello Experts
Does anyone know if page up/down navigation through records on a form can be turned off?  I want the user to use the navigation buttons I’ve provided on the form to navigate next and previous.  These buttons have code behind them that evaluate the data of the navigated to record and formats the text, hides or makes visible select data elements.  Or is there an “On Next Record” action that I can apply code to?  
Thank you
Avatar of Flyster
Flyster
Flag of United States of America image

In design View right-click your form and select Properties. Under the Format tab, change "Navigation Buttons" to No.

Flyster
Avatar of dhemple

ASKER

Thanks for your response Flyster, but changing "Navigation Buttons" to No does not stop navigation with [Page Up] or [Page Down] on user's key board.  Do you know of a way to prevent navigation as described?
ASKER CERTIFIED SOLUTION
Avatar of Flyster
Flyster
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Regarding the above code, put it in the On Key Down Event (Properties - Event Tab). If you use the code builder, the first and last lines will already be added.
Avatar of dhemple

ASKER

Thank you for your help Flyster.  This is exactly what I was looking for.  Happy New Year!!
You're Welcome. And a Happy New Year to you too