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 / General 2 / June 2007

Tip: Looking for answers? Try searching our database.

schedule compact mdb

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
-EvaMendes - 14 Jun 2007 01:23 GMT
How can I run a compact and repair mdb daily at certain time? Thanks.
Arvin Meyer [MVP] - 14 Jun 2007 03:15 GMT
> How can I run a compact and repair mdb daily at certain time? Thanks.

You can build an application in Access or VB which will do the compaction,
and run it using the Windows Scheduler, or any other program which allows
scheduling. You can also use FMS's Agent:

http://www.fmsinc.com/Products/Agent/index.html
Signature

Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

-EvaMendes - 14 Jun 2007 04:41 GMT
HI,

          If I am using access 97,  how can I do it exactly? Can you please
give me some guideline or example? Thanks.

>> How can I run a compact and repair mdb daily at certain time? Thanks.
>
[quoted text clipped - 3 lines]
>
> http://www.fmsinc.com/Products/Agent/index.html
Arvin Meyer [MVP] - 15 Jun 2007 04:27 GMT
Try this line of code:

DBEngine.CompactDatabase "c:\yourdir\oldname.mdb", "c:\yourdir\oldname.mdb"

You'll need to do it from another database which is open.
Signature

Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

> HI,
>
[quoted text clipped - 8 lines]
>>
>> http://www.fmsinc.com/Products/Agent/index.html
 
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.