Compact the database.

Signature
Slainte
Craig Alexander Morrison
Crawbridge Data (Scotland) Limited
Craig,
Is there a way of doing this programatically, say as a form is opened?
Harry V

Signature
Harry E Vermillion
IT2
Division of Wildlife
State of Colorado
> Compact the database.
>
> > I'm using Access 2002 and I'm wondering if there isn't a way to refresh
> > all
> > the indexes to a table?
Craig Alexander Morrison - 26 Jul 2006 17:30 GMT
As long as the database (that you want to compact) is not open and in use
you can use
DBEngine.CompactDatabase
Check usage in help but basically you need to give it the database source
and the target
You will need to rename the target to the source to continue using it as
before.

Signature
Slainte
Craig Alexander Morrison
Crawbridge Data (Scotland) Limited
> Craig,
>
[quoted text clipped - 7 lines]
>> > all
>> > the indexes to a table?
Craig Alexander Morrison - 26 Jul 2006 17:33 GMT
...should have added you will find help on the CompactDatabase (DAO) in the
VB editor (2003).

Signature
Slainte
Craig Alexander Morrison
Crawbridge Data (Scotland) Limited
> Craig,
>
[quoted text clipped - 7 lines]
>> > all
>> > the indexes to a table?
Harry V - 26 Jul 2006 19:06 GMT
Thank you sir, I can take it from here.

Signature
Harry E Vermillion
IT2
Division of Wildlife
State of Colorado
> ....should have added you will find help on the CompactDatabase (DAO) in the
> VB editor (2003).
[quoted text clipped - 10 lines]
> >> > all
> >> > the indexes to a table?