PC Review


Reply
Thread Tools Rate Thread

compact on close option

 
 
Janis
Guest
Posts: n/a
 
      10th Apr 2009
Is it a good idea to use the option to compact a database on close if there
is a possibility there is corruption in a database. Last year the client had
a split database ascs.mdb and ascs_be.mdb and they had them both on a z:
drive and opened it from a shortcut. Everytime she ran a report she had to
compact the database first or she would get a runtime error I guess it was
looking for the backend. But it worked by compacting it. So there is a
chance there is corruption however I split the two up and I didn't get the
runtime error again. So what I want to know is safe to use the compact on
close option?
 
Reply With Quote
 
 
 
 
Larry Daugherty
Guest
Posts: n/a
 
      10th Apr 2009
Compact on close is only going to compact the FrontEnd, not your
BackEnd with the data.

HTH
--
-Larry-
--

"Janis" <(E-Mail Removed)> wrote in message
news:BEE56E3A-F1E5-44E8-9A38-(E-Mail Removed)...
> Is it a good idea to use the option to compact a database on close

if there
> is a possibility there is corruption in a database. Last year the

client had
> a split database ascs.mdb and ascs_be.mdb and they had them both on

a z:
> drive and opened it from a shortcut. Everytime she ran a report she

had to
> compact the database first or she would get a runtime error I guess

it was
> looking for the backend. But it worked by compacting it. So there

is a
> chance there is corruption however I split the two up and I didn't

get the
> runtime error again. So what I want to know is safe to use the

compact on
> close option?



 
Reply With Quote
 
Janis
Guest
Posts: n/a
 
      10th Apr 2009
Oh thanks, compacting the front end will not do anything in this case we only
need to save the back-end.

"Larry Daugherty" wrote:

> Compact on close is only going to compact the FrontEnd, not your
> BackEnd with the data.
>
> HTH
> --
> -Larry-
> --
>
> "Janis" <(E-Mail Removed)> wrote in message
> news:BEE56E3A-F1E5-44E8-9A38-(E-Mail Removed)...
> > Is it a good idea to use the option to compact a database on close

> if there
> > is a possibility there is corruption in a database. Last year the

> client had
> > a split database ascs.mdb and ascs_be.mdb and they had them both on

> a z:
> > drive and opened it from a shortcut. Everytime she ran a report she

> had to
> > compact the database first or she would get a runtime error I guess

> it was
> > looking for the backend. But it worked by compacting it. So there

> is a
> > chance there is corruption however I split the two up and I didn't

> get the
> > runtime error again. So what I want to know is safe to use the

> compact on
> > close option?

>
>
>

 
Reply With Quote
 
Roger Carlson
Guest
Posts: n/a
 
      10th Apr 2009
On my website (www.rogersaccesslibrary.com), is a small Access database
sample called "CompactBackEndDB.mdb" which illustrates how to do this. You
can find it here:
http://www.rogersaccesslibrary.com/f...ts.asp?TID=378

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Janis" <(E-Mail Removed)> wrote in message
news:6C13C52C-4F73-4771-8D11-(E-Mail Removed)...
> Oh thanks, compacting the front end will not do anything in this case we
> only
> need to save the back-end.
>
> "Larry Daugherty" wrote:
>
>> Compact on close is only going to compact the FrontEnd, not your
>> BackEnd with the data.
>>
>> HTH
>> --
>> -Larry-
>> --
>>
>> "Janis" <(E-Mail Removed)> wrote in message
>> news:BEE56E3A-F1E5-44E8-9A38-(E-Mail Removed)...
>> > Is it a good idea to use the option to compact a database on close

>> if there
>> > is a possibility there is corruption in a database. Last year the

>> client had
>> > a split database ascs.mdb and ascs_be.mdb and they had them both on

>> a z:
>> > drive and opened it from a shortcut. Everytime she ran a report she

>> had to
>> > compact the database first or she would get a runtime error I guess

>> it was
>> > looking for the backend. But it worked by compacting it. So there

>> is a
>> > chance there is corruption however I split the two up and I didn't

>> get the
>> > runtime error again. So what I want to know is safe to use the

>> compact on
>> > close option?

>>
>>
>>



 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      10th Apr 2009
Janis

Did I understand you correctly? The backend AND the frontend are both on a
network drive?

The preferred design is to leave the backend on the network, but place a
copy of the frontend on EVERY user's PC.

That way, one user experiencing difficulties with the "frontend" won't hose
it for everyone.

Regards

Jeff Boyce
Microsoft Office/Access MVP


"Janis" <(E-Mail Removed)> wrote in message
news:BEE56E3A-F1E5-44E8-9A38-(E-Mail Removed)...
> Is it a good idea to use the option to compact a database on close if
> there
> is a possibility there is corruption in a database. Last year the client
> had
> a split database ascs.mdb and ascs_be.mdb and they had them both on a z:
> drive and opened it from a shortcut. Everytime she ran a report she had
> to
> compact the database first or she would get a runtime error I guess it was
> looking for the backend. But it worked by compacting it. So there is a
> chance there is corruption however I split the two up and I didn't get the
> runtime error again. So what I want to know is safe to use the compact
> on
> close option?



 
Reply With Quote
 
Janis
Guest
Posts: n/a
 
      10th Apr 2009
That is what happened but I moved it back to the users hard drive. Now we
are compacting it just in case. They did this for a whole year. Very
painful.

"Jeff Boyce" wrote:

> Janis
>
> Did I understand you correctly? The backend AND the frontend are both on a
> network drive?
>
> The preferred design is to leave the backend on the network, but place a
> copy of the frontend on EVERY user's PC.
>
> That way, one user experiencing difficulties with the "frontend" won't hose
> it for everyone.
>
> Regards
>
> Jeff Boyce
> Microsoft Office/Access MVP
>
>
> "Janis" <(E-Mail Removed)> wrote in message
> news:BEE56E3A-F1E5-44E8-9A38-(E-Mail Removed)...
> > Is it a good idea to use the option to compact a database on close if
> > there
> > is a possibility there is corruption in a database. Last year the client
> > had
> > a split database ascs.mdb and ascs_be.mdb and they had them both on a z:
> > drive and opened it from a shortcut. Everytime she ran a report she had
> > to
> > compact the database first or she would get a runtime error I guess it was
> > looking for the backend. But it worked by compacting it. So there is a
> > chance there is corruption however I split the two up and I didn't get the
> > runtime error again. So what I want to know is safe to use the compact
> > on
> > close option?

>
>
>

 
Reply With Quote
 
Janis
Guest
Posts: n/a
 
      10th Apr 2009

I do have a question though. Do you have to compact both databases or only
the backend? I would think you only have to compact the data file but I
don't know.
"Jeff Boyce" wrote:

> Janis
>
> Did I understand you correctly? The backend AND the frontend are both on a
> network drive?
>
> The preferred design is to leave the backend on the network, but place a
> copy of the frontend on EVERY user's PC.
>
> That way, one user experiencing difficulties with the "frontend" won't hose
> it for everyone.
>
> Regards
>
> Jeff Boyce
> Microsoft Office/Access MVP
>
>
> "Janis" <(E-Mail Removed)> wrote in message
> news:BEE56E3A-F1E5-44E8-9A38-(E-Mail Removed)...
> > Is it a good idea to use the option to compact a database on close if
> > there
> > is a possibility there is corruption in a database. Last year the client
> > had
> > a split database ascs.mdb and ascs_be.mdb and they had them both on a z:
> > drive and opened it from a shortcut. Everytime she ran a report she had
> > to
> > compact the database first or she would get a runtime error I guess it was
> > looking for the backend. But it worked by compacting it. So there is a
> > chance there is corruption however I split the two up and I didn't get the
> > runtime error again. So what I want to know is safe to use the compact
> > on
> > close option?

>
>
>

 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      10th Apr 2009
Janis

Before Compact/Repair, make a (safety) backup copy.

If either the frontend or the backend has either temp tables and/or a number
of records being added/removed, they may periodically benefit from running
Compact/Repair.

On the other hand, I have some applications I support at my day job that I
haven't run Compact/Repair on in years ... and there've been no
complaints/issues by the users.

If your database is periodically requiring Compact/Repair, you need to be
looking for the cause of the corruption that leads to needing to run C/R.

Good luck!

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Janis" <(E-Mail Removed)> wrote in message
news:A318C55A-5A06-41E6-8C43-(E-Mail Removed)...
>
> I do have a question though. Do you have to compact both databases or
> only
> the backend? I would think you only have to compact the data file but I
> don't know.
> "Jeff Boyce" wrote:
>
>> Janis
>>
>> Did I understand you correctly? The backend AND the frontend are both on
>> a
>> network drive?
>>
>> The preferred design is to leave the backend on the network, but place a
>> copy of the frontend on EVERY user's PC.
>>
>> That way, one user experiencing difficulties with the "frontend" won't
>> hose
>> it for everyone.
>>
>> Regards
>>
>> Jeff Boyce
>> Microsoft Office/Access MVP
>>
>>
>> "Janis" <(E-Mail Removed)> wrote in message
>> news:BEE56E3A-F1E5-44E8-9A38-(E-Mail Removed)...
>> > Is it a good idea to use the option to compact a database on close if
>> > there
>> > is a possibility there is corruption in a database. Last year the
>> > client
>> > had
>> > a split database ascs.mdb and ascs_be.mdb and they had them both on a
>> > z:
>> > drive and opened it from a shortcut. Everytime she ran a report she
>> > had
>> > to
>> > compact the database first or she would get a runtime error I guess it
>> > was
>> > looking for the backend. But it worked by compacting it. So there is
>> > a
>> > chance there is corruption however I split the two up and I didn't get
>> > the
>> > runtime error again. So what I want to know is safe to use the
>> > compact
>> > on
>> > close option?

>>
>>
>>



 
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
Compact an Access Applicaton by checking Compact on Close tomlebold@msn.com Microsoft Access 2 15th Jan 2007 07:00 PM
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 option =?Utf-8?B?QWJiZXkgTm9ybWFs?= Microsoft Access 4 31st Dec 2004 12:49 AM
Re: How do you enable the file, close option to close the whole appli. Cindy M -WordMVP- Microsoft Word Document Management 2 28th Sep 2004 01:35 PM
Compact on Close option Ricki Microsoft Access 2 19th Apr 2004 03:34 AM


Features
 

Advertising
 

Newsgroups
 


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