ACC2000: How to Use the SendKeys Action to Change Option Menus (209511)
The information in this article applies to:
This article was previously published under Q209511 This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
In a Microsoft Access macro, a SendKeys action must precede a RunCommand action when you need to send keystrokes to a dialog box. For example,
when a RunCommand action opens the Print dialog box to change a printing parameter, the SendKeys keystrokes remain in the buffer. If the SendKeys action follows the RunCommand action, the keystrokes will not run.
REFERENCESFor more information about how SendKeys works, click Microsoft Access Help on the
Help menu, type SendKeys Action in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
For more information about SendKeys syntax, click Microsoft Visual Basic Help on the
Help menu, type SendKeys Statement in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Minor | Last Reviewed: | 1/26/2005 |
---|
Keywords: | kbinfo kbusage KB209511 |
---|
|