ACC: Error Message Using AutoKeys Macro

ID: Q106183


The information in this article applies to:


SUMMARY

Moderate: Requires basic macro, coding, and interoperability skills.

If you use an invalid key combination in an AutoKeys macro in Microsoft Access 7.0 or 97, you may receive the following error message:

The key combination '<your key combination>' in AutoKeys has invalid syntax or is not allowed.

In Microsoft Access versions 1.x or 2.0, you may receive the following error message:
The key combination '<your key combination>' in 'AutoKeys' isn't valid and will be ignored.


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 which 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
   +{DELETE} or +{DEL}        SHIFT+DEL key 

In Microsoft Access 1.x and 2.0, you can change the name of the key assignment macro to something other than AutoKeys as follows:
  1. On the View menu, click Options.


  2. In the Category box, select Keyboard.


  3. Change the Key Assignment Macro box from AutoKeys to the name you want to use.


NOTE: This feature is not available in Microsoft Access 7.0 or later.

Steps to Reproduce Behavior


  1. Create a new macro.


  2. Type +Z in the Macro Name column.


  3. Type Beep in the Action column.


  4. Save the macro as AutoKeys.

    Note that in Microsoft Access 7.0 and 97, you receive the following error message:
    The key combination '+Z' in AutoKeys has invalid syntax or is not allowed.

    Note that in Microsoft Access versions 1.x or 2.0, you receive the following error message:
    The key combination '+Z' in 'AutoKeys' isn't valid and will be ignored.




REFERENCES

For more information about AutoKeys, search the Help Index for "AutoKeys," or ask the Microsoft Access 97 Office Assistant.

Additional query words: auto keys adk


Keywords          : kberrmsg McrName 
Version           : 1.0 1.1 2.0 7.0 97
Platform          : WINDOWS 
Issue type        : kbinfo 

Last Reviewed: March 27, 1999