ACC2000: Error Message Using AutoKeys Macro
ID: Q209197
|
The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
If you use an invalid key combination in an AutoKeys macro in Microsoft
Access, you may receive the following error message:
The key or key combination <. . .> in AutoKeys has invalid syntax or is not allowed.
Use the SendKeys syntax to specify the key or key combinations.
For the allowed key or key combinations, click Help.
MORE INFORMATION
When you open a database, Microsoft Access looks for a macro with the name AutoKeys. You receive an error if that macro contains a key combination that is not in the following list:
| SendKeys Syntax Example |
Key Combination |
| ^A or ^4 |
CTRL+any letter or number |
| {F1} |
Any function key |
| ^{F1} |
CTRL+any function key |
| +{F1} |
SHIFT+any function key |
| {INSERT} |
INS key |
| ^{INSERT} |
CTRL+INS key |
| +{INSERT} |
SHIFT+INS key |
| {DELETE} or {DEL} |
DEL key |
| ^{DELETE} or ^{DEL} |
CTRL+DEL key |
| SHIFT+DEL key |
SHIFT+DEL key |
Steps to Reproduce Behavior
- Create a new macro.
- Type +Z in the Macro Name column.
- Type Beep in the Action column.
- Save the macro as AutoKeys. Note that you receive the following error message:
The key or key combination +Z in AutoKeys has invalid syntax or is not
allowed.
Use the SendKeys syntax to specify the key or key combinations.
For the allowed key or key combinations, click Help.
REFERENCES
For more information about AutoKeys, click Microsoft Access Help on the
Help menu, type "AutoKeys" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned.
Additional query words:
auto keys adk
Keywords : kberrmsg kbdta McrName
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbinfo