Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

belovedcej (Programmer) (OP)
11 May 06 16:25
Is there an event in Access that will run even if the program is abnormally shut down?  Like in a power outage or a CTRL-ALT-DELETE set up?  A VB programmer told me about the queryUnload event, but I don't see that in VBA
LNBruno (Programmer)
11 May 06 16:30
Haven't tried this, but maybe a "quit" macro?

< M!ke >

belovedcej (Programmer) (OP)
11 May 06 17:48
Thanks for the quick response.  Are you refering to the Quit option in a macro?  That simply shuts the program down.  

I have a routine that needs to run with the application is shut down, and I have taken care of that - unless something happens to shut things down abnormally.  If Access is shut down with CTRL-ALT-DEL, the unload event of a form does not trigger - so I know that following events (like form close) will not.  I'm looking for some kind of event that will handle things when a form closes - even if it never makes it as far as the unload event.

Just had a thought - I wonder if deactivate will work.  I'll check it out and let you know.
belovedcej (Programmer) (OP)
12 May 06 8:52
Neither deactive or lost focus works.

Any other ideas?
LNBruno (Programmer)
12 May 06 9:50
I realized this on the way home yesterday (of course):  if the power goes off, NOTHING will run.

< M!ke >

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close