Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Nov 2001
    Thanked 0 Times in 0 Posts

    Closing the database (Access 2000)

    How to close the database

    I have an autoexec file performing the task of transfering some tables and modules, and on completing i have to quit the database. I end up my code with the following command:
    Application.Quit acPrompt
    However i receive the message that path cannot be found.I do not receive an error if i perform the code from an OnClick comand, but

    when the code is withing the autoexec macro,and that is exactky what i want to do, then i receive this error.
    How can i effectively close the database with another command, so that i do not receive errors?

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Sacramento, California, USA
    Thanked 1 Time in 1 Post

    Re: Closing the database (Access 2000)

    Where is that code? I'm not sure what you mean by an autoexec file. That code should work fine in Access 2000, whether you invoke it with a button click or call a routine that contains it from a macro or run it some other way from inside the database.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts