Create an exit buttonon the switchboard

Posted on 2011-04-27
Last Modified: 2012-05-11
I am looking to have an exit button on the main switchboard to exit the application and close access completely..

I did a macro however it only closes the form..
Question by:TonyEF
    LVL 75

    Accepted Solution

    Use the Quit action in the Macro instead.

    LVL 75

    Expert Comment

    by:DatabaseMX (Joe Anderson - Access MVP)
    OR ... do this in the button code:

    Private Sub btnExit_Click()
        Application.Quit acQuitSaveNone
    End Sub

    Author Closing Comment

    Thank you.. it works great..
    LVL 75

    Expert Comment

    by:DatabaseMX (Joe Anderson - Access MVP)
    You are welcome ....


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
    In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
    Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now