A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Compact and Repair on Close



 
 
Thread Tools Display Modes
  #1  
Old March 25th, 2007, 04:15 AM posted to microsoft.public.access.gettingstarted
Linda \(RQ\)
external usenet poster
 
Posts: 36
Default Compact and Repair on Close

Hi,

I was looking around in the options and see a checkbox to compact and repair
the database on close. This is not checked by default. It seems like it
would be a good idea, is there a reason why it wouldn't be a good idea to
have this checked?

Thanks,
Linda


  #2  
Old March 25th, 2007, 05:30 AM posted to microsoft.public.access.gettingstarted
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Compact and Repair on Close

On Sat, 24 Mar 2007 23:15:22 -0400, "Linda \(RQ\)"
wrote:

is there a reason why it wouldn't be a good idea to
have this checked?


Yes. It's slow; it's never necessary for a frontend and will not run in a
backend (unless the backend is opened directly); it can corrupt the database;
it will interfere with other users attempting to open the database while the
compact is proceeding.

Just compact programmatically at reasonable intervals, when you're sure the
database isn't being or going to be used.

John W. Vinson [MVP]
  #3  
Old March 25th, 2007, 06:28 AM posted to microsoft.public.access.gettingstarted
Ed Metcalfe
external usenet poster
 
Posts: 82
Default Compact and Repair on Close

"John W. Vinson" wrote in message
...
snip
it's never necessary for a frontend
snip

John,

Since Access 2000 frontend Access databases that contain no local tables
(only linked tables) do seem to bloat over time and can grow up to several
hundred megabytes in size.

Whilst I agree with all the other reasons you gave for not using compact on
close (and I never do) it *is* necessary to compact frontend MDBs from time
to time.

Ed Metcalfe.


  #4  
Old March 25th, 2007, 12:53 PM posted to microsoft.public.access.gettingstarted
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default Compact and Repair on Close

"Ed Metcalfe" wrote in message
...
"John W. Vinson" wrote in message
...
snip
it's never necessary for a frontend
snip

John,

Since Access 2000 frontend Access databases that contain no local tables
(only linked tables) do seem to bloat over time and can grow up to several
hundred megabytes in size.

Whilst I agree with all the other reasons you gave for not using compact
on close (and I never do) it *is* necessary to compact frontend MDBs from
time to time.


That's true, but Compact On Close is seldom (if ever) a good way to
accomplish that.

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



  #5  
Old March 25th, 2007, 03:43 PM posted to microsoft.public.access.gettingstarted
Linda RQ
external usenet poster
 
Posts: 91
Default Compact and Repair on Close

Thanks, Guys....I will leave that box unchecked and do it myself from time
to time...Job Security!

Linda
"Douglas J. Steele" wrote in message
...
"Ed Metcalfe" wrote in message
...
"John W. Vinson" wrote in message
...
snip
it's never necessary for a frontend
snip

John,

Since Access 2000 frontend Access databases that contain no local tables
(only linked tables) do seem to bloat over time and can grow up to
several hundred megabytes in size.

Whilst I agree with all the other reasons you gave for not using compact
on close (and I never do) it *is* necessary to compact frontend MDBs from
time to time.


That's true, but Compact On Close is seldom (if ever) a good way to
accomplish that.

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





  #6  
Old March 25th, 2007, 09:07 PM posted to microsoft.public.access.gettingstarted
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Compact and Repair on Close

On Sun, 25 Mar 2007 06:28:46 +0100, "Ed Metcalfe"
wrote:

Since Access 2000 frontend Access databases that contain no local tables
(only linked tables) do seem to bloat over time and can grow up to several
hundred megabytes in size.


If that happens, I'd suggest just replacing it with a fresh copy.

John W. Vinson [MVP]
  #7  
Old March 25th, 2007, 10:31 PM posted to microsoft.public.access.gettingstarted
Ed Metcalfe
external usenet poster
 
Posts: 82
Default Compact and Repair on Close


"John W. Vinson" wrote in message
...
On Sun, 25 Mar 2007 06:28:46 +0100, "Ed Metcalfe"
wrote:

Since Access 2000 frontend Access databases that contain no local tables
(only linked tables) do seem to bloat over time and can grow up to several
hundred megabytes in size.


If that happens, I'd suggest just replacing it with a fresh copy.

John W. Vinson [MVP]


John,

Why?

Ed Metcalfe.


  #8  
Old March 25th, 2007, 11:00 PM posted to microsoft.public.access.gettingstarted
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default Compact and Repair on Close

"Ed Metcalfe" wrote in message
...

"John W. Vinson" wrote in message
...
On Sun, 25 Mar 2007 06:28:46 +0100, "Ed Metcalfe"

wrote:

Since Access 2000 frontend Access databases that contain no local tables
(only linked tables) do seem to bloat over time and can grow up to
several
hundred megabytes in size.


If that happens, I'd suggest just replacing it with a fresh copy.


Why?


It's far simpler (and safer) simply to replace the front-end, rather than
compact it.

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



  #9  
Old March 25th, 2007, 11:56 PM posted to microsoft.public.access.gettingstarted
Linda RQ
external usenet poster
 
Posts: 81
Default Compact and Repair on Close


"John W. Vinson" wrote in message
...
On Sun, 25 Mar 2007 06:28:46 +0100, "Ed Metcalfe"
wrote:

Since Access 2000 frontend Access databases that contain no local tables
(only linked tables) do seem to bloat over time and can grow up to several
hundred megabytes in size.


If that happens, I'd suggest just replacing it with a fresh copy.

John W. Vinson [MVP]



How does it get bloated?

Thanks,
Linda



  #10  
Old March 26th, 2007, 12:19 AM posted to microsoft.public.access.gettingstarted
CES
external usenet poster
 
Posts: 25
Default Compact and Repair on Close

Linda (RQ) wrote:
Hi,

I was looking around in the options and see a checkbox to compact and repair
the database on close. This is not checked by default. It seems like it
would be a good idea, is there a reason why it wouldn't be a good idea to
have this checked?

Thanks,
Linda



All,
I to noticed the option to compact and repair on exit with Access 2007 (I'm running Vista)... however be forewarned it just deleted four days worth the work that I did not have a backup of.

Not exactly sure why it did it and I did get a warning message, which unfortunately I didn't pay any attention to. I certainly agree with those that say manually do a compact and repair at least then you'll be more aware of any message you might see, whereas if you do it on exit will just assume that something code failed to close properly.

The real problem with compact and repair is that it doesn't save a backup copy of the database it just overwrites the previous copy. Thanks in advance. - CES
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.