Assuming you've got a reference set to DAO, it's DBEngine.CompactDatabase
<fullpathtodatabase>, <fullpathtocompactto>
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Mairim" <Mairim@discussions.microsoft.com> wrote in message
news:52D25537-AF24-49C8-92A3-44B7BE8BEAA5@microsoft.com...
> I need your help:
> How to compact and repair another DB within a Code?
> Can you help me?
> thank you
> Miriam
>