Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

msgbox to prompt Compact and repair on close of DB

Status
Not open for further replies.

aarondewberry

IS-IT--Management
Jul 20, 2005
148
GB
All

What I am looking to do is....

When a user clicks to close the database using the close button. I want a msgbox to appear asking them whether they want to compact and repair or not.
vbYes then I want the database to compact repair and close.
Else Quit
I don't want this to happen everytime the database is accessed an close, hence not using the Tools > Options....

Any ideas

Regards
 
Thanks Remou. I just must be rubbish at searching those FAQ's, lol.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top