Close Access from a form

J

Joe M.

I have a menu form with a "close form" cmd button. I would like Access to
close when the button is pushed.Is there a way to do this?

Thanks,
Joe M.
 
G

George

Dear Joe,

You can set the On Click event of that button to Docmd.Quit

GeorgeCY

Ο χÏήστης "Joe M." έγγÏαψε:
 
K

ken

In the button's Click event procedure put:

Application.Quit

Ken Sheridan
Stafford, England
 
K

KC-Mass

use the OnClose event of the form

action would be "Quit" after you clean up any open database and recordsets
 

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