ACC: How to Make the AutoKeys Macro Form-SpecificID: Q130856
|
Moderate: Requires basic macro, coding, and interoperability skills.
This article demonstrates how you can create an AutoKeys macro to work with
a specific form rather than with all the objects in the database.
When you assign a set of actions to a specific key combination in an
AutoKeys macro, the key-combination assignment is in effect throughout the
database. However, you can limit the scope of the key-combination
assignment by using a condition in the AutoKeys macro.
To make the AutoKeys macro work only with a specific form, follow these
steps:
Macro Name Action
-------------------
Test1 MsgBox
Test1 Actions
---------------------------------------------------
MsgBox
Message: The AutoKeys macro worked successfully!
Macro Name Condition Action
----------------------------------------------------------------
^m [Screen].[ActiveForm].[Name]="employees" RunMacro
^m Actions
--------------------
RunMacro
Macro Name: Test1
For more information about AutoKeys, search the Help Index for "AutoKeys
macro group."
For more information about "conditions in macros", search the Help Index
for "macros, conditional expressions."
For information about troubleshooting errors in the AutoKeys macro, please
see the following article in the Microsoft Knowledge Base:
Q106183 ACC: Error Message Using AutoKeys Macro
Keywords : kbusage McrHowto
Version : 2.0 7.0 97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: April 30, 1999