Compact an Access 2000 database under Delphi 7 with ADO

I am trying to compact an Access 2000 database under Delphi 7 using ADO. I
get a error message tha indicates that the database is open and must be
closed to compact it. How do I close the Access database? I tried to set the
ADOConnection1.Connected to false but that did not work.

Merv Norton
MLNor...@cox.net