Compact is the way to recover unused space for an access database.. using the dbengine you can do it inside
Vb.. I can't give you any code since it's different for DAO and ADO, and if you want to carry with this option you can find a lot over google. If you don't want to use this technique (if the database is big it could take some time), just close all the connections to it and do a copyfile...
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========