問題描述
MS Access 錯誤 3188:無法更新;當前被這台機器上的另一個會話鎖定 (MS Access Error 3188: Could not update; currently locked by another session on this machine)
我有一個綁定到帶有長文本字段 (form_conversationDetail
) 的表格的表單。
我可以添加、然後編輯和保存相同的記錄,直到字符數達到在該字段中超過 2000。
之後,當我嘗試保存記錄時,我開始收到以下信息:
錯誤 3188:無法更新;當前被這台機器上的另一個會話鎖定。
我有一個父表單 (form_conversations
),它提供了一個記錄列表,允許用戶選擇要進行哪個會話在 form_conversationDetail
中編輯。
在打開 form_conversationDetail
之前,我嘗試將 Dirty 設置為 False
。<
參考解法
方法 1:
I added the following statement right before I save which seems to have resolved the situation:
DBEngine.Idle dbFreeLocks
(by Ashwin Nirmul、Ashwin Nirmul)