I have a button on the menu (copied from the default menu) to compact the database.
I would like it to run some routines or functions before it actually tries to compact the database, how could I do it?
Hi Klasse,
The easiest way I can tell would be to add another custom button to your menu that says "CLICK BEFORE COMPACTING" that runs your functions.
As far as automatically running functions before compacting the current database, I'm not sure it's possible. The only way I know of to compact a database in code is through the CompactDatabase method of the DBEngine object. This method only works on databases which are already closed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.