Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable PgUP and PgDn KEYS

Status
Not open for further replies.

wacks

Programmer
Sep 10, 2001
58
US

Hey!

* How can i disable PageUp and PageDown KEYS from the keyboard on access application?

'coz the previous data were shown using PgUp and PgDn keys!

thnx very much!
 
Set KeyPreview=true on form

locate code section for Form and KeyDown, and set as follows:

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyPageUp Then KeyCode = 0: Exit Sub
If KeyCode = vbKeyPageDown Then KeyCode = 0: Exit Sub
End Sub
"Outside of a dog, a book is probably man's best friend; and inside of a dog, it's too dark to read" - G. Marx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top