Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 22nd, 2004, 10:06 AM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Automatically Compacting a Database

Does anyone have a code snippet for automatically compacting an access database?

 
Old March 22nd, 2004, 10:20 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You need to use "jet replication objects". These are part of MDAC install (this is the package that installs ADO etc.) up until version 2.5. Future versions do not include them.

One link from Google

http://www.dotnet247.com/247referenc...29/148062.aspx

--

Joe
 
Old March 22nd, 2004, 10:25 AM
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wow. Your reference was alot shorter than the overkill that what I just got from http://www.vbcity.com/pubs/article.a...pact_access_db

I'll just have to add the message boxes to let the client know that it's done. Thanks again


Quote:
quote:Originally posted by joefawcett
 You need to use "jet replication objects". These are part of MDAC install (this is the package that installs ADO etc.) up until version 2.5. Future versions do not include them.

One link from Google

http://www.dotnet247.com/247referenc...29/148062.aspx

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
compacting database pblm MathLearner VB Databases Basics 8 September 27th, 2007 07:34 AM
Compacting database Scootterp Access VBA 5 August 9th, 2006 09:33 AM
Compacting Access Database problem imaley SQL Language 1 April 23rd, 2004 11:28 AM
Compacting Access Database from code imaley Access 6 March 31st, 2004 05:33 PM
Compacting a large database takabyte Classic ASP Databases 1 February 5th, 2004 12:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.