Exit Access

  • Thread starter Thread starter Aurora
  • Start date Start date
A

Aurora

I am using Access 2000

I created a menu for my Db. I then added a control button
to exit the program. In the control button menu, the
application is the only place I found an EXIT command.
But when I dbl click on the button I get an error message
that says:
"The expression On DBL Click you entered as the event
property setting produced the following error: Ambiguous
name detected: Exit_RR_Menu_click.
The expression may not result in the name of a macro, the
name of a user-defined function, or [Event Procedure].
There may have been an error evaluating the function,
event, or macro."

Since this was a command button function, I do not
understand what is wrong? Can someone help me?

Aurora
 
Sounds like it is not recognizing your button name. If you use the wizard,
there is a predefined option to "Quit Application".

Try adding your button again, and this time select "quit application" in the
action box. it is part of the "application" category.

Rick B



I am using Access 2000

I created a menu for my Db. I then added a control button
to exit the program. In the control button menu, the
application is the only place I found an EXIT command.
But when I dbl click on the button I get an error message
that says:
"The expression On DBL Click you entered as the event
property setting produced the following error: Ambiguous
name detected: Exit_RR_Menu_click.
The expression may not result in the name of a macro, the
name of a user-defined function, or [Event Procedure].
There may have been an error evaluating the function,
event, or macro."

Since this was a command button function, I do not
understand what is wrong? Can someone help me?

Aurora
 
And FYI, it is recommended that you not use spaces when naming database
objects. Name your button something like QuitApplication or CloseButton or
similar.

Rick B


I am using Access 2000

I created a menu for my Db. I then added a control button
to exit the program. In the control button menu, the
application is the only place I found an EXIT command.
But when I dbl click on the button I get an error message
that says:
"The expression On DBL Click you entered as the event
property setting produced the following error: Ambiguous
name detected: Exit_RR_Menu_click.
The expression may not result in the name of a macro, the
name of a user-defined function, or [Event Procedure].
There may have been an error evaluating the function,
event, or macro."

Since this was a command button function, I do not
understand what is wrong? Can someone help me?

Aurora
 
Hi,

My name is Amy Vargo. Thank you for using the Microsoft Access Newsgroups.

Open the form in design view. On the menu bar, go to View, Code. This
will show you the code behind the form. Use the Search/Replace window to
search for "Exit_RR_Menu_click". It is probably listed in there twice.
Delete the extra occurrence.

You can also search all modules in the issue occurs outside of the code
behind the form.

I hope this helps! If you have additional questions on this topic, please
respond back to this posting.


Regards,

Amy Vargo
Microsoft Access Engineer


This posting is provided 'AS IS' with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.
 
Thank you for answering. I was using the wizard and that
is what was not working. I finally created a macro to
Quit the application and that worked fine. Who Knows what
I did wrong.

Aurora
 
Thank you for answering. I am not good with code. This
is an area I am hoping to take a class in sometime this
next year. To get around my problem, I created a macro to
close the application and that worked just find.

Again, thank you for answering. I appreciate it.

Aurora
 
Back
Top