Discussion Locked

Access 97 Record Locking Errors

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Has anyone experienced record locking errors with a shared Access 97 database? My clients are intermittently receiving errors that other users have the record locked. When I check the database, the two users involved are entering two separate unique records. I do not understand why these errors are occuring? Can anyone help me out?

5 replies

by mbarker734

About choosing a record-locking strategy in a multiuser environment

When you edit a record, Microsoft Access can automatically prevent other users from changing the record before you have finished editing it.
Giving one user exclusive access to a record is called locking. There are three locking strategies to choose from:

? No Locks ? Microsoft Access does not lock the record you're editing. When you try to save changes to a record that another person has also changed, Microsoft Access displays a message giving you the options of overwriting the other user's changes to the record, copying your version of the record to the Clipboard, or discarding your changes. This strategy ensures that records can always be edited, but it can create editing conflicts between users.
? Edited Records ? Microsoft Access locks the record you're editing, so no other user can change it. It might also lock other records that are stored nearby on your disk. If another user tries to edit a record that you've locked, Microsoft Access displays the locked record indicator in the other user's datasheet. This strategy ensures that you can always finish making changes that you start. It is a good choice if you don't have editing conflicts often.
? All Records ? Microsoft Access locks all records in the form or datasheet (and underlying tables) you're editing for the entire time you have it open, so no one else can edit or lock the records. This strategy is very restrictive, so choose it only when you know you're the only person who needs to edit records at any one time.

From the Access97 online helpfile.

Good luck,

Mark

by neiseann

Thanks Mark. This did help me get started on the right track. I already had my form with No locks, but my database was using Edited Locks strategy. I changed my database to No Locks also, but I am still concerned that too many edit conflicts willoccur. I guess I will just have to try it out and see what happens.

Thanks for your help,
Denise

by mmdkj.family

Access can not lock individual records only. It locks pages of records. Other records around the record being edited will be locked also even though those records are not actually being edited. They are in the same page of records on the hard drive.

I recommend using no locks and access will prompt to overwrite anothers change or cancel your change to the same record on a first save basis.

by neiseann

This did help me get started on the right track. I already had my form with No locks, but my database was using Edited Locks strategy which I guess overwrote the No Locks in my form. I changed my database to No Locks also, but I am still concernedthat too many edit conflicts will occur.
I will try it out and see what happens.

Thanks for your help,
Denise

This discussion is closed to new replies.