How to close MS Access application after running macros from scheduled tasks?

Posted on 2007-10-05
Last Modified: 2013-11-27
I am using Windows XP with Office 2003 to use a scheduled task.  This task run an Access macro and emails reports to several people.  This works fine.  My problem is that I run macros several times daily and each time MS Access applicationis opened.  How do I close the MS Access application after running a macro. Access opens only so many times before errors occur.
Question by:mcinhelp
    LVL 119

    Accepted Solution


    place this as the last command in the macro


    or application.quit
    LVL 6

    Assisted Solution

    OR add the quit action to the macros itself.
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    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 the article entitled Working with Objects – Part 1 (, you learned the basics of working with objects, properties, methods, and events. In Work…
    In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 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

    19 Experts available now in Live!

    Get 1:1 Help Now