A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Ambiguous name detected" in my event procedure



 
 
Thread Tools Display Modes
  #1  
Old March 31st, 2005, 08:27 PM
Jeremy
external usenet poster
 
Posts: n/a
Default "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  
Old March 31st, 2005, 08:39 PM
Jeff Conrad
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Event Procedure Antonio General Discussion 1 March 25th, 2005 10: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


All times are GMT +1. The time now is 12:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.