Hi,
I have a VBA code that deletes some old data from my database and uploads the new data into it from some excel files.
The thing is that the macro stops in the middle and brings me the error that the database reached it maximum capacity but when I click the Compact and Repair button the DB goes from 2GB to 600MB.
Is there a code to run the Compact and Repair command in the middle of the code?
Thanks!
I have a VBA code that deletes some old data from my database and uploads the new data into it from some excel files.
The thing is that the macro stops in the middle and brings me the error that the database reached it maximum capacity but when I click the Compact and Repair button the DB goes from 2GB to 600MB.
Is there a code to run the Compact and Repair command in the middle of the code?
Thanks!