Closing Access

G

Guest

I have an exit button setup on Switchboard to close my database when I click
on it. I have already disabled the "X" in the corners, so the only way to
close my database right now is going in through Task Manager. Is there a code
so that when I click on the Exit Button on Switchboard that it will
automatically close the program. i have read other forums and have not really
found what I needed. Thanks!
 
G

Guest

Hi

Put this on the OnClick event of the button

Private Sub ButtonName_Click()
DoCmd.Quit
End Sub

(Change ButtonName to whatever you use)

Hope this helps
 
G

Guest

Thanks. It worked great!

Wayne-I-M said:
Hi

Put this on the OnClick event of the button

Private Sub ButtonName_Click()
DoCmd.Quit
End Sub

(Change ButtonName to whatever you use)

Hope this helps

--
Wayne
Manchester, England.
Not an expert
Enjoy whatever it is you do
 

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