Microsoft KB Archive/93294

{|
 * width="100%"|

INF: All Duplicate Macro Names in Macro Group Are Run
'Article ID: Q93294

Creation Date: 03-DEC-1992

Revision Date: 30-NOV-1996' The information in this article applies to:


 * Microsoft Access versions 1.0, 1.1, 2.0, 7.0, 97

SYMPTOMS

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

When you have two macros in the same macro group with the same name, both macros will be run. This problem will not occur if the macros are not consecutive in the macro group--that is, there is a different macro between the two macros with the same name.

MORE INFORMATION

Steps to Reproduce Behavior

  Create a new macro with two actions: Macro Name Action   Argument --     First One   MsgBox   &quot;This is the message&quot; First One  MsgBox   &quot;This is the message&quot;  Save the macro as Macro1. Run the macro using Macro1.FirstOne. Note that the message box appears twice.
 * }

-

"THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED &quot;AS IS&quot; 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." '' ©1997 Microsoft Corporation. All rights reserved. Legal Notices.

''

KBCategory: kbusage

KBSubcategory: McrName

Additional reference words: 1.00 1.10 2.00 7.00 97 8.00