This also works for Office 2010 (ver. 14.0) vs. Office 2007 (v 12.0)
We recommend that you back up all your systems, including your windows registry.
Error Message
Method 1: Set the registry key to MaxLocksPerFile to increase the maximum number
of locks per file
2. Type regedit, and then click OK.
3. Use the appropriate method:
* In Microsoft Access 2000, in Microsoft Access 2002, and in Microsoft Office
Access 2003 that are running on a 32-bit Windows operating system, use Registry
Editor to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Jet 4.0
In Microsoft Access 2000, in Microsoft Access 2002, and in Microsoft Office
Access 2003 that are running on a 64-bit Windows operating system, use Registry
Editor to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Jet 4.0
* In Microsoft Office Access 2007 that is running on a 32-bit Windows operating
system, use Registry Editor to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Access Connectivity
Engine\Engines\ACE
In Microsoft Office Access 2007 that is running on a 64-bit Windows operating
system, use Registry Editor to locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\12.0\Access
Connectivity Engine\Engines\ACE
4. In the right pane of Registry Editor, double click MaxLocksPerFile.
5. On the Edit DWORD Value dialog box, click Decimal.
6. Modify the value of the Value data box as required, and then click OK.
Note This method changes the Windows registry setting for all applications that
use the Microsoft Jet database engine version 4.0.
Note The sample code in this article uses Microsoft Data Access Objects. For
this code to run correctly, you must reference the Microsoft DAO 3.6 Object
Library. To do so, click References on the Tools menu in the Visual Basic
Editor, and make sure that the Microsoft DAO 3.6 Object Library check box is
selected.
2. Open a database, and then press Alt+F11 to launch the Visual Basic editor.
3. On the Microsoft Visual Basic –[ (Code)] window, click Immediate Window in
the View menu.
4. In Immediate Window, enter the following code.
DAO.DBEngine.SetOption dbmaxlocksperfile,15000