ACC2000: KeyDown Event Doesn't Fire for Custom ActiveX Controls (208247)



The information in this article applies to:

  • Microsoft Access 2000

This article was previously published under Q208247
Advanced: Requires expert coding, interoperability, and multiuser skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

SYMPTOMS

When you use Microsoft Visual C++ to create a custom ActiveX control that uses the KeyDown event as part of its functionality, you may notice that not all keys start the event.

CAUSE

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

MORE INFORMATION

When you work with the KeyDown event of custom ActiveX controls, the following keys are not forwarded by Microsoft Access:

DELETE
HOME
END
PAGEUP
PAGEDOWN
ARROW

All other keys work as expected.

REFERENCES

For more information about ActiveX controls, click Microsoft Access Help on the Help menu, type activex control in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

Modification Type:MajorLast Reviewed:6/24/2004
Keywords:kbprb KB208247