dbTalk Databases Forums  

Could not update; currently locked --> On INSERT !?

comp.databases.ms-access comp.databases.ms-access


Discuss Could not update; currently locked --> On INSERT !? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
palm.kevin@gmail.com
 
Posts: n/a

Default Could not update; currently locked --> On INSERT !? - 02-28-2008 , 03:18 AM






Hello,

I have many applications (DOTNET. Connected using OleDB) that all
write data to the same table in a Access database file.

But sometimes I get the error "Could not update; currently
locked" ??!!!!!

How can this be possible???? I only do inserts into the table...
Does Access lock the entire table when inserting a record ????

I searched a lot on google groups but didn't find any user having the
same problem...

Please help me...

Reply With Quote
  #2  
Old   
Dominic Vella
 
Posts: n/a

Default Re: Could not update; currently locked --> On INSERT !? - 02-28-2008 , 07:30 AM






Microsoft Access actually uses page locking, in other words it locks groups
of records at a time.

Another reason could be that somebody has opened the table in exclusive
mode, or evened opened the datafile directly. In exclusive mode, only one
computer can modify data. You could fix this by creating an 'Autoexec'
Macro in the data file to exit the database as soon as someone opens it.
Of course, you'd have to hold the Left Shift-Key if you ever wanted to open
the data file and bypass the Autoexec Macro from executing.


Dom

<palm.kevin (AT) gmail (DOT) com> wrote

Quote:
Hello,

I have many applications (DOTNET. Connected using OleDB) that all
write data to the same table in a Access database file.

But sometimes I get the error "Could not update; currently
locked" ??!!!!!

How can this be possible???? I only do inserts into the table...
Does Access lock the entire table when inserting a record ????

I searched a lot on google groups but didn't find any user having the
same problem...

Please help me...



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.