Using VB6 and Access 2000

When you want to compact a database and your using ADO,
do you still use:-

DBEngine.CompactDatabase "olddb", "newDB"

In the VB docs it only ever references DAO when you
look up CompactDatabase

Is there another way?

Thanks,

SeanR