PC Review


Reply
Thread Tools Rate Thread

Access locking problem

 
 
David French
Guest
Posts: n/a
 
      23rd Jan 2006
Problem:

User tries to save changed data and gets the following error, even though
there is no other user in the record:

"Could not update; currently locked."



Application structure:

An mdb file containing all of the tables & and mde file containing all of
the queries, forms, and modules, and uses table links. Users enter the
application via a shortcut to the mde file. (The record level locking
parameter is turned on.)



Problem scenario:

The form that usually encounters the problem is a filtered form with sub
forms. The user clicks a button on the form to add new records, which runs
VB code inserting records in several tables. Then the form is refreshed and
repositioned to the new data. They change some data then encounter the
error when saving it. Usually occurs with many users (10) accessing it,
however they aren't usually in the same data record as the user encountering
the error. Most of the time the user can wait a while, or exit and go back
into the application, and then is able to save the data.



I can't replicate the condition with test files, because I can't emulate the
large usage.

The only thing I can do is trial and error changes to production during the
peak usage times, which is not ideal.



Any suggestions would be appreciated.



Access 2000 or 2002


 
Reply With Quote
 
 
 
 
Joseph Meehan
Guest
Posts: n/a
 
      23rd Jan 2006
David French wrote:
> Problem:
>
> User tries to save changed data and gets the following error, even
> though there is no other user in the record:
>
> "Could not update; currently locked."
>
>
>
> Application structure:
>
> An mdb file containing all of the tables & and mde file containing
> all of the queries, forms, and modules, and uses table links. Users
> enter the application via a shortcut to the mde file. (The record
> level locking parameter is turned on.)
>
>
>
> Problem scenario:
>
> The form that usually encounters the problem is a filtered form with
> sub forms. The user clicks a button on the form to add new records,
> which runs VB code inserting records in several tables. Then the
> form is refreshed and repositioned to the new data. They change some
> data then encounter the error when saving it. Usually occurs with
> many users (10) accessing it, however they aren't usually in the same
> data record as the user encountering the error. Most of the time the
> user can wait a while, or exit and go back into the application, and
> then is able to save the data.


As I recall Access does not lock "records" rather it locks "pages." A
page may be one record or many depending, I guess, on the size of the
records.

I suspect that is your problem. The few times I can into locking
problems I switched to batch processing so the data was actually added to
the front end temp table and then that data was used to update the back end
table at the end of the data entry operators session.

>
>
>
> I can't replicate the condition with test files, because I can't
> emulate the large usage.
>
> The only thing I can do is trial and error changes to production
> during the peak usage times, which is not ideal.
>
>
>
> Any suggestions would be appreciated.
>
>
>
> Access 2000 or 2002


--
Joseph Meehan

Dia duit


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Database Locking Problem Red Dog via .NET 247 Microsoft ADO .NET 2 17th Mar 2005 02:28 PM
access locking problem dawn.syverson Microsoft Access Security 3 1st Apr 2004 11:40 PM
access locking problem dawn syverson Microsoft Access Security 0 31st Mar 2004 09:12 PM
Access Locking Problem. Miky Microsoft ADO .NET 12 27th Jan 2004 12:21 PM
Access Locking Problem Miky Microsoft VB .NET 4 14th Jan 2004 02:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:41 PM.