Call function on exit application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I looked up the code that will compact a database if it reaches a certain
size. I'm supposed to call this function before the application exits. I
know how to call a function before a user closes a form, but I don't know how
to call a function before the actual application closes. Any ideas? Thanks!
 
Answered all the time. Do a search.

You need to tie your code to a form's close event. If you don't have a form
that is always open, then make on that opens with the database in hidden
mode. Tie all your "must run in the background" events to this form.

Rick B


Markantesp said:
I looked up the code that will compact a database if it reaches a certain
size. I'm supposed to call this function before the application exits. I
know how to call a function before a user closes a form, but I don't know how
to call a function before the actual application closes. Any ideas?
Thanks!
 
Back
Top