ACC1x: Low Number of Share Locks Can Cause Error Message

Last reviewed: May 7, 1997
Article ID: Q96904
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1

SYMPTOMS

You receive the error message "Can't save; record is locked by another user" in Microsoft Access, even when only one user (in one session on one computer) is using a database opened for shared access.

CAUSE

This error can be caused by an insufficient number of share locks.

RESOLUTION

Be sure that the number of share locks is set to 500 or more. The number of share locks is set by the /L:xxxx parameter when SHARE.EXE is invoked, usually in the AUTOEXEC.BAT file, as follows:

   C:\DOS\SHARE.EXE /L:500

The Microsoft Access Setup program modifies your AUTOEXEC.BAT file and sets the number of share locks to 500, but some other program may alter that value.

Although 500 share locks are sufficient for most Microsoft Access applications, some applications may have problems related to the number of share locks. You may need to gradually increase the number of share locks until these problems disappear. Try to add as few share locks as possible, since each share lock uses memory.

Note that if you are running Microsoft Access under Windows for Workgroups in 386 Enhanced mode, then you do not need to load SHARE.EXE in your AUTOEXEC.BAT file. VSHARE.386, which is loaded automatically by Windows for Workgroups in 386 Enhanced mode, will take care of this problem.

STATUS

This behavior no longer occurs in Microsoft Access version 2.0.


Additional query words: share-lock shared locks
Keywords : GnlMu kberrmsg kbusage
Version : 1.0 1.1
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.