Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2002
    Location
    Baghdad, Iraq
    Posts
    697

    Unanswered: Run macros on close

    I've been digging around, but came up empty: does anyone know how to fire off a macro when Access is quit?

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    One way to accomplish this is to create a persistant form, then place code in the form's on_close event. This is also useful for triggering scheduled functions and time-sensitive code.
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  3. #3
    Join Date
    Oct 2002
    Location
    Baghdad, Iraq
    Posts
    697
    Quote Originally Posted by Teddy
    One way to accomplish this is to create a persistant form, then place code in the form's on_close event. This is also useful for triggering scheduled functions and time-sensitive code.
    I didn't even know forms could be persistent... I guess you just make it hidden as soon as it opens?

    Anyway, I think I can figure out the rest from here. Thanks!

  4. #4
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Yup, you got it. Don't even think of it as a form, just an object that the user never sees that happens to hold some code..
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

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