Using the close button on a form to exit access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

Is there any way that the close button on a form be used to exit Access. If
so what do I need to do for this to work. I'm using A97 if thats any help

MTIA
 
If this is a button you have added to the form, use Application.Quit.
 
Hi all,

Is there any way that the close button on a form be used to exit Access. If
so what do I need to do for this to work. I'm using A97 if thats any help

MTIA

It would be disconcerting for a lot of users, but yes, you can do
this; in the Form's Close event put code like

Private Sub Form_Close(Cancel as Integer)
Application.Quit
End Sub


John W. Vinson[MVP]
 

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

Similar Threads

Exit Database button 1
X Close Button 1
Hidden close button on form? 4
Modify the Office Button? 14
Access not closing using Switchboard form 3
Acess - Closing 4
Close form without saving 13
On db Exit 4

Back
Top