Does someone have the code to catch the windows close command?
Does someone have the code to catch the windows close command?
Do you want to catch Access closing , or some other app?
I want to catch if another app tries to close access
The problem we have is that a terminal server can close a session after x hours of inactivity.
When there are open database connections the database sometimes gets damaged.
Relations between a few tables get lost.
When I can catch the the windows close, I can close all open forms.
Sounds like what you actually want is code to close your database 'nicely' after a specified period of inactivity and before terminal server does so less nicely.
I have code to do this but it's fairly embedded in my app and specific to that
If you do a forum search you should find something suitable