ACC: Error Message Using AutoKeys Macro

Last reviewed: May 7, 1997
Article ID: Q106183
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0, 7.0, 97

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 kbusage McrName
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Hardware : X86
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.