ACC2: KeyDown and KeyPress Events Do Not Run in Option GroupLast reviewed: May 14, 1997Article ID: Q132330 |
The information in this article applies to:
SYMPTOMSNovice: Requires knowledge of the user interface on single-user computers. When you try to trap keystrokes using event procedures for the OnKeyDown or the OnKeyPress property of a control within an option group in a subform, the keystroke events do not occur. As a result, you cannot disable keystrokes, such as PAGE UP and PAGE DOWN, from within an option group in a subform.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access version 2.0. This problem no longer occurs in Microsoft Access version 7.0. Also, in version 7.0, you can use the KeyPreview property to trap for keystrokes before a form control receives notification of the keystrokes. This enables you to disable keystrokes regardless of the form controls.
MORE INFORMATION
Steps to Reproduce Problem
REFERENCESFor more information about the KeyDown event, search for "KeyDown," and then "KeyDown, KeyUp Events" using the Microsoft Access Help menu. For more information about disabling the PAGE UP and PAGE DOWN keys in a form, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q114506 TITLE : ACC2: How to Disable PAGE UP and PAGE DOWN Keys in a Form |
Keywords : FmsOpt kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |