Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Refreshing Indexes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Harry V - 26 Jul 2006 16:04 GMT
I'm using Access 2002 and I'm wondering if there isn't a way to refresh all
the indexes to a table?
Signature

Harry E Vermillion
IT2
Division of Wildlife
State of Colorado

Craig Alexander Morrison - 26 Jul 2006 16:56 GMT
Compact the database.

Signature

Slainte

Craig Alexander Morrison
Crawbridge Data (Scotland) Limited

> I'm using Access 2002 and I'm wondering if there isn't a way to refresh
> all
> the indexes to a table?
Harry V - 26 Jul 2006 17:19 GMT
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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.