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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting when the "X" is clicked and run code first

Status
Not open for further replies.

sellert

Programmer
Nov 18, 2004
36
US
Greetings All,
I would like to run a macro that will disable the shift key when the database closes regardles of the method that it is closed. Is there a way to detect when someone clicks the X to exit the application and first run code to disabel the shift key prior to the database closing?

Thanks,
SELLERT

If I'm not learning I must be coasting. If I am coasting I must be going down hill.
 
Hi

Ensure you have a form open, this could be hidden if you do not want user to see it, have alook at onClose and/or onUnload event of form you need to put your code there

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top