Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!
  • Students Click Here

*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.

Students Click Here


an equivelant to VB6 queryUnload event?

an equivelant to VB6 queryUnload event?

an equivelant to VB6 queryUnload event?

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

RE: an equivelant to VB6 queryUnload event?

Haven't tried this, but maybe a "quit" macro?

< M!ke >

RE: an equivelant to VB6 queryUnload event?

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.

RE: an equivelant to VB6 queryUnload event?

Neither deactive or lost focus works.

Any other ideas?

RE: an equivelant to VB6 queryUnload event?

I realized this on the way home yesterday (of course):  if the power goes off, NOTHING will run.

< M!ke >

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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