If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
"Ambiguous name detected" in my event procedure
I am getting the following error message:
"The expression On Click you entered as an event property setting produced the following error: Ambiguous name detected:" then it lists the form I am trying to open with the command button. |
#2
|
|||
|
|||
Hi,
This is a classic example of Access not cleaning up after itself. When you delete command buttons from the form, Access does not delete the underlying code attached to that button. So if, for example, you create a button called OpenForm_Click using the wizard and later delete it, the code is still there in the form's module. If you then create another button called OpenForm_Click you now have two subroutines in the code. Access gets confused because it sees two code routines (or more) for the same button. In essence Access is going "Dude, what's up with us?" Go look at the code module behind your form and carefully look around. You will probably see two or more code routines for the same thing. Delete the code that is not needed. Then compile to see if there are any other problems. That should take care of it. -- Jeff Conrad Access Junkie Bend, Oregon "Jeremy" wrote in message: ... I am getting the following error message: "The expression On Click you entered as an event property setting produced the following error: Ambiguous name detected:" then it lists the form I am trying to open with the command button. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Event Procedure | Antonio | General Discussion | 1 | March 25th, 2005 09:53 PM |
"Ambiguous Name Detected TmpDDE" | cbtadm | General Discussion | 1 | October 6th, 2004 02:07 PM |
EXCEL 2002: How do I user/simulate a Timer event in Excel form | JohnF | Worksheet Functions | 6 | September 23rd, 2004 04:56 PM |
~ ambiguous name detected | camron107 | General Discussion | 1 | July 19th, 2004 09:30 AM |
Ambiguous name detected - entire database will not open | Natalie | General Discussion | 5 | June 21st, 2004 10:49 PM |