I would like to be able to insert code that will automatically compact the db after it updates my tables. I use Microsoft Scheduler to update my tables during the night so i will have updated data in the morning. I always like to compact the database after each update. I would appreciate some assistance from some of you programmers out there with the code to accomplish this. I thought I saw a previous post but unable to find it.