S
SteveM
Hi Steve
If anybody has anything but schadenfreude about my troubles, here's a
twist. I inserted a pause using the Timer function between the
Optimization completion and the opening of the Pivot Form that uses
the Solution table. The problem goes away if I insert a delay of at
least 4 seconds. So evidently Access needs to clean up after the
Optimizer has left. But 4 seconds is a long time.Can I force Access to do its business immediately with a command/
method?SteveM
In place of your timer, try using:
DBEngine.Idle dbRefreshCache
Also, if you have any control over the function of the Optimizer, make sure
that it is using a transaction to update the database. CommitTrans will
flush pending writes and release locks.
--
Good Luck
Graham Mandeno [Access MVP]
Auckland, New Zealand
Graham,
Thanks a ton. Unfortunately:
DBEngine.Idle dbRefreshCache
Does not work. The Optimizer does have a "Use Transactions" switch
and it is set to On.
So the Schadenfreude...
SteveM