Reputation: 71
I have a form bound to a table with a long text field (form_conversationDetail
).
I can add and then edit and save the same record until the number of characters in the field goes over 2000.
After that, I start getting the following when I attempt to save the record:
Error 3188: Could not update; currently locked by another session on this machine.
I have a parent form (form_conversations
) that provides a list of records that allow the user to choose which conversation to edit in form_conversationDetail
.
Before opening form_conversationDetail
, I tried setting Dirty to False
.
Upvotes: 2
Views: 1844
Reputation: 1
I have an Access database with a table called "Post" and a field called "body" which was long text RTF. I was constantly getting:
Could not update; currently locked by another session on this machine
This seems like a Microsoft Access bug. The fact that a report, which can't even edit the data and should be doing a non-locking read causes the issues, suggests it's a bug.
I have to make sure no one opens a second screen that views the same record with the RTF control while someone is editing the RTF value.
I tried refresh and other possible fixes I found online, but for whatever reason, I still had the problem.
Upvotes: 0
Reputation: 71
I added the following statement right before I save which seems to have resolved the situation:
DBEngine.Idle dbFreeLocks
Upvotes: 3