I splitted my access application into frontend and backend. I would like to know how I can compact my backend database from my frontend via a button click.
Not sure you can since I believe you can't access the file while compacting. Take a look at FMS Inc.'s Total Access Backup, I believe it includes a scheduled compact option.
I believe you can do this with the DAO CompactDatabase method.
You will need to ensure that NO records in the BE are open. ie no tables, queries, forms, or reports in the (any) Front-End are open.
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.