isladogs
MVP / VIP
- Local time
- Today, 02:09
- Joined
- Jan 14, 2017
- Messages
- 18,538
Some of you will be familiar with this error:
There are 2 ways of increasing the MaxLocksPerFile:
1. Permanently by changing the registry
2. Temporarily using VBA code
Both methods are explained in this link:https://support.microsoft.com/en-nz/help/815281/-file-sharing-lock-count-exceeded-error-message-during-large-transacti
In my case, I increased the locks for Access 2010 32-bit from the default 9500 to 15000 using the MaxLocksPerFile registry key
However when answering a question about this in Access 2016 (365), I checked the registry & there is no equivalent section
I found that the path is instead:
I was also asked 2 other questions:
1. Is there a sensible upper limit for this value? In other words if this was set to say 1,000,000 would this cause other performance issues?
2. Is this one situation where 64-bit Access is better? In other words can it handle system resources any better than 32-bit?
As I couldn't answer either question, I'm hoping someone else can advise.
I'm fairly confident who this question is likely to appeal to...
File sharing lock count exceeded. Increase MaxLocksPerFile registry entry.
There are 2 ways of increasing the MaxLocksPerFile:
1. Permanently by changing the registry
2. Temporarily using VBA code
Both methods are explained in this link:https://support.microsoft.com/en-nz/help/815281/-file-sharing-lock-count-exceeded-error-message-during-large-transacti
In my case, I increased the locks for Access 2010 32-bit from the default 9500 to 15000 using the MaxLocksPerFile registry key
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Access Connectivity Engine\Engines\ACE]
However when answering a question about this in Access 2016 (365), I checked the registry & there is no equivalent section
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Access Connectivity Engine\Engines\ACE]
I found that the path is instead:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Microsoft\Office\16.0\Access Connectivity Engine\Engines\ACE
I was also asked 2 other questions:
1. Is there a sensible upper limit for this value? In other words if this was set to say 1,000,000 would this cause other performance issues?
2. Is this one situation where 64-bit Access is better? In other words can it handle system resources any better than 32-bit?
As I couldn't answer either question, I'm hoping someone else can advise.
I'm fairly confident who this question is likely to appeal to...
Last edited: