Microsoft Knowledge Base Email Alertz

(817411) - When you run a procedure in Microsoft Access 2000 or later, you may receive the following error message: The expression Event_Name you entered as the event property setting produced the following error: Ambiguous name detected: EventProcedure_Name .

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 817411 - Last Review: September 17, 2011 - Revision: 5.0

Error message when you run a procedure in Access: "Ambiguous name detected"

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

For a Microsoft Access 97 version of this article, see 815284  (http://kbalertz.com/Feedback.aspx?kbNumber=815284/EN-US/ ) .

SYMPTOMS

When you run a procedure in Microsoft Access 2000 or later, you may receive the following error message:
The expression Event_Name you entered as the event property setting produced the following error: Ambiguous name detected: EventProcedure_Name.

CAUSE

This error occurs when there are multiple procedures with the same name in a module.

WORKAROUND

To work around this problem, delete the unwanted duplicate procedure. To do this, follow these steps:
  1. Open the form in Design view.
  2. In Microsoft Office Access 2003, click Code on the View menu.

    In Microsoft Office Access 2007, click View Code in the Tools group on the Design tab.
  3. On the Debug menu, click Compile Database Name.

    You receive the following error message:
    Compile error: Ambiguous name detected: Procedure Name.
  4. Notice the procedure name, and then click OK.
  5. In the code, find the other occurrences of the Procedure Name procedure, where Procedure Name produced the compile error mentioned in step 3.
  6. Select and then delete the unwanted procedure.
  7. On the Debug menu, click Compile Database Name.
  8. On the File menu, click Close.

REFERENCES

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
209907  (http://kbalertz.com/Feedback.aspx?kbNumber=209907/EN-US/ ) ACC2000: Compile Error After Converting Form Macros to VBA

APPLIES TO
  • Microsoft Office Access 2007
  • Microsoft Office Access 2003
  • Microsoft Access 2002 Standard Edition
  • Microsoft Access 2000 Standard Edition
Keywords: 
kberrmsg kbprb KB817411
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

alok - alok NOSPAM-AT-NOSPAM sampatti.com Report As Irrelevant  
Written: 11/26/2004 1:01 AM
Sorry!!!I could hardly get anything from this . the tmpDDE doesnt comes up in the Tools menu. My error says "ambiguous name detected: ~" in Msword XP. Could u provide a still better solution.