ACC: KeyDown Event Doesn't Fire for Custom OCX Controls

ID: Q190883


The information in this article applies to:


SYMPTOMS

Advanced: Requires expert coding, interoperability, and multiuser skills.

When you create a custom OCX using Visual C++ that uses the KeyDown event as part of its functionality, you may notice that not all keys will invoke the event.


CAUSE

Microsoft Access does not forward all keys to the OCX control.


STATUS

This behavior is by design


MORE INFORMATION

When working with the KeyDown event of custom OCXs, the following keys are not forwarded by Microsoft Access:


   DELETE
   HOME
   END
   PAGEUP
   PAGEDOWN
   ARROW keys 

All other keys work as expected.

Additional query words: prb keypress acive x activex ole


Keywords          : kbdta AutPrb 
Version           : WINDOWS:7.0,97
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: April 30, 1999