switch off compact on close (1 Viewer)

boerbende

Ben
Local time
Today, 02:25
Joined
Feb 10, 2013
Messages
339
Hello,

I am using Access 2010.
Under options, current database I have DESELECTED "compact on close"
Still all my databases are compacting on close. How can I prevent Access to compact on close?

Problem is that we work under Citrix and sometimes things happens with Citrix that they have to reboot all the servers. The databases tries to close and compact and don't get enough time, so I get mdb copies.
Besides I recently had only the compacted database1.mdb while my file Name.accdb was gone, so again the compact was wrong.

Many thanks

Ben
 

burrina

Registered User.
Local time
Yesterday, 19:25
Joined
May 10, 2014
Messages
972
It can't compact unless you tell it too! Is it losing a connection to the back end?
You mat wan to have a hidden form load when the db loads so as to maintain a connection.
 

boerbende

Ben
Local time
Today, 02:25
Joined
Feb 10, 2013
Messages
339
It's as simple as that. No backend, just several accdb's which have the same problem. And I tell them not to compact, but still they do it.

I will try to exclude Citrix first by the way, it's not the first time applications under Citrix shows different behaviour.
 

boerbende

Ben
Local time
Today, 02:25
Joined
Feb 10, 2013
Messages
339
Found the solution:
Indeed the "compact on close" does not do the job alone.
Microsoft has another hidden option which compacts on close

Under File, options, Current database switch off: "compact on close".
Under File, options, Current database switch off: "Use the cache format that is compatible with 2010 and later".


Ben
 

battles

New member
Local time
Yesterday, 20:25
Joined
Apr 21, 2014
Messages
3
Found the solution:
Indeed the "compact on close" does not do the job alone.
Microsoft has another hidden option which compacts on close

Under File, options, Current database switch off: "compact on close".
Under File, options, Current database switch off: "Use the cache format that is compatible with 2010 and later".

Ben


Thanks, Ben! Saved me a tons of hair pulling! :banghead:
 

isladogs

MVP / VIP
Local time
Today, 01:25
Joined
Jan 14, 2017
Messages
18,209
Found the solution:
Indeed the "compact on close" does not do the job alone.
Microsoft has another hidden option which compacts on close

Under File, options, Current database switch off: "compact on close".
Under File, options, Current database switch off: "Use the cache format that is compatible with 2010 and later".

Ben

Sorry to disagree (4 years on...) but the cache options are nothing to do with compacting.
Their purpose is explained in the Access options help file
 

Attachments

  • Capture.PNG
    Capture.PNG
    42.3 KB · Views: 982

Users who are viewing this thread

Top Bottom