Results 1 to 3 of 3
  1. #1
    kathyschick
    Guest

    Code on exiting Access (Access 2000)

    Is there a way to use the WithEvents to run code on exiting Access? I want to ask the user a question each time he/she exits the database. I know how to do this with Word but it doesn't seem to happy with Access.

    Thanks!

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Code on exiting Access (Access 2000)

    WithEvents is used to automate and trap events on objects within Access. You can't use it on Access itself, at least not from within the same session of Access. What you usually do in this case is restrict the methods they can use to exit the database and call the desired code from each of those potential exit points.
    Charlotte

  3. #3
    kathyschick
    Guest

    Re: Code on exiting Access (Access 2000)

    Thanks. Then I suppose there isn't a way to do this on closing a specific 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
  •