Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2011
    Posts
    23

    Unable to totally quit acess

    Using Access 2007, Windows 8.1



    I'm trying to completely close and quit access from a database with:

    Code:
     
    Private Sub OKButton_Click()
        DoCmd.CloseDatabase
        DoCmd.Quit acQuitSaveAll
    End Sub
    But no matter what I try I get back to the screen as per attached

    Please can any body help

    Regards

    Terry Lawson
    Attached Thumbnails Attached Thumbnails Close Database Error.jpg  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    usu: DoCmd.Quit
    is all you need to shut everything down.

  3. #3
    Join Date
    Feb 2011
    Posts
    23
    Very many thanks

    It works, another very happy old man.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 06-27-2015, 05:12 PM
  2. Totally Bewildered
    By PeeODE in forum Access
    Replies: 2
    Last Post: 07-31-2014, 10:14 AM
  3. Totally lost!!
    By JPP in forum Access
    Replies: 7
    Last Post: 02-04-2013, 10:05 AM
  4. Unable to open the database in Acess 2007
    By Bhat59 in forum Access
    Replies: 1
    Last Post: 08-09-2012, 07:38 PM
  5. Totally disgusted!!!
    By djclntn in forum Queries
    Replies: 8
    Last Post: 12-03-2011, 06:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums