I am trying to compact a DB when exiting the application, but the code that was posted by Ghudson doesn't seem to work. I am sure it's my problem, but I am wondering if it's because the DB is a linked database. So for this VBA novice, although I understand the code from my old programming days...