PC Review


Reply
Thread Tools Rate Thread

Compact an Access Applicaton by checking Compact on Close

 
 
tomlebold@msn.com
Guest
Posts: n/a
 
      15th Jan 2007
Is it risky to automatically compact an Access MDB when a user closes
an application.
That is automatically compacting by checking Compact on Close on the
Option form in the Tools menu.
Compacting an Access application can corrupt an Access MDB.

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      15th Jan 2007
A properly designed Access application should be split into a front-end
(containing the queries, forms, reports, macros and modules), linked to a
back-end (containing the tables and relationships). Realistically, it's only
the back-end that needs to be compacted regularly. Since chosing the
"Compact On Close" option only impacts the front-end, it's of limited value.

I question your comment, though, that "Compacting an Access application can
corrupt an Access MDB." While that's true, doing anything with an Access MDB
is, theoretically, capable of corrupting it. Compacting is a fundamental
part of proper maintenance of Jet databases, and should not be avoided.


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is it risky to automatically compact an Access MDB when a user closes
> an application.
> That is automatically compacting by checking Compact on Close on the
> Option form in the Tools menu.
> Compacting an Access application can corrupt an Access MDB.
>



 
Reply With Quote
 
David W. Fenton
Guest
Posts: n/a
 
      15th Jan 2007
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in
news:(E-Mail Removed):

> I question your comment, though, that "Compacting an Access
> application can corrupt an Access MDB." While that's true, doing
> anything with an Access MDB is, theoretically, capable of
> corrupting it. Compacting is a fundamental part of proper
> maintenance of Jet databases, and should not be avoided.


But it should be done only when needed. If you have Compact On Close
ON and you get an error indicating corruption, there's no way to
close Access in an orderly fashion (in order to make a backup)
without the compact triggering (you can force quite through Task
Manager, of course, if you remember). The result could possibly be
that you lose data that you would have been able to recover from the
MDB before the compact.

Thus, I think it's very, very unwise to ever set Compact On Close to
ON.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stopping Compact and Repair (and Compact on Close) - Records Disappear gee664@gmail.com Microsoft Access 7 25th Apr 2006 05:17 PM
Compact on Close Access 97 =?Utf-8?B?UmlwcGVy?= Microsoft Access 1 1st Aug 2005 03:57 AM
Compact On Close: MS Access or Jet? Jamie Collins Microsoft Access 12 21st Mar 2005 07:13 AM
Access 97 Compact On Close doglover Microsoft Access Database Table Design 2 27th Aug 2004 12:22 AM
Access 97 Programmically Compact on Close =?Utf-8?B?Q2FybGVl?= Microsoft Access VBA Modules 3 22nd Jan 2004 12:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:01 AM.