Automatically run Access macro from a shared drive

Posted on 2012-09-19
Last Modified: 2012-09-20
The Access macro that I'm trying to automatically execute using a batch file is on a network/shared drive.
The problem is, Access doesn't automatically close after the macro executes.
Any idea on how to do this in a batch file/DOS command?
Question by:kris_sk2012
    LVL 6

    Expert Comment

    Why not add a Quit command to your macro or if you use that macro for other purposes, create a new macro that runs the requested macro and then quits?

    Author Comment

    Exactly - so what's the quit command for access and excel?
    LVL 6

    Accepted Solution

    It is a command that is in the list when designing a macro.  The attached image shows Access 2010.  The option in 2010 is "QuitAccess".  The option before is "Quit".  This exits Access.  The option associated with this command is a saving option.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    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 Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
    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…
    What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

    779 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

    14 Experts available now in Live!

    Get 1:1 Help Now