Hi all,
does anybody know the way how to intercept a class destroing that happens when method 'application.quit' is called or EXITcommand from File menu is issued?
I have a class which executes some background tasks when Access application is running. I have to remember the state of the class when tasks were interrupted by exiting Access. The problem is the instance of the class is set to Nothing before Form_Unload event is raised so I can't do any saving there.
The only solution I know is to disable MSAccess close (X) button and to supply my own exit function for File menu/Exit command.
Ivo
does anybody know the way how to intercept a class destroing that happens when method 'application.quit' is called or EXITcommand from File menu is issued?
I have a class which executes some background tasks when Access application is running. I have to remember the state of the class when tasks were interrupted by exiting Access. The problem is the instance of the class is set to Nothing before Form_Unload event is raised so I can't do any saving there.
The only solution I know is to disable MSAccess close (X) button and to supply my own exit function for File menu/Exit command.
Ivo