Editing Record issues in Access / SQL (Write Conflict)

后端 未结 13 2467
-上瘾入骨i
-上瘾入骨i 2020-12-05 22:44

a problem has come up after a SQL DB I used was migrated to a new server. Now when trying to edit a record in Access (form or table), it says: WRITE CONFLICT: This re

13条回答
  •  误落风尘
    2020-12-05 23:18

    I´m using this workaround and it has worked for me: Front end: Ms Access Backend: Mysql

    On the Before update event of a given field:

    Private Sub tbl_comuna_id_comuna_BeforeUpdate(Cancel As Integer)
    
    If Me.tbl_comuna_id_comuna.OldValue = Me.tbl_comuna_id_comuna.Value Then
    Cancel = True
    Undo
    End If
    End Sub
    

提交回复
热议问题