You could put this on the On Click event of a command button:
DBEngine.CompactDatabase "C:\My Documents\Nameofdatabase_be.mdb", "C:\My Documents\Nameofdatabase_be1.mdb"
Kill "C:\My Documents\Nameofdatabase_be.mdb"
Name "C:\My Documents\Nameofdatabase_be1.mdb" As "C:\My Documents\Nameofdatabase_be.mdb"
Obviously you'll need to specify the exact file path to the backend.
HTH