Exit Access

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
 
R

Rick B

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
 
R

Rick B

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
 
A

Amy Vargo

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.
 
G

Guest

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
 
A

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top