I have an MS Access 2010 application. When I go to a form and type data into a Memo field I then run the below query in VBA when a button is clicked. The current record is the only one being edited and no other user is in the database.
However, I get the error that the record can't be updated due to a record lock violation. I also sometimes get the error the data has been changed and I should re-edit the record.Below are the text for each error I receive.
Form DV didn't update 0 fields due to a type conversion failure, 0 records due to key violations, 1 record due to lock violations...
The data has been changed. Another user edited this record and saved the changes before you attempted to save your changes. Re-edit the record.
Does anyone know how I can get around this or why it is happening?
Private Sub Save_Status_Complete_Button_Click()
Str_SQL_Update = "UPDATE [dbo_Tape_Capture_Local_tbl] SET header_general_comments_status = 1 WHERE [Loan Identifier] = '" & Me.Loan_ID_Combo & "';"
DoCmd.RunSQL Str_SQL_Update
End Sub
UPDATE
. – HansUpupdate
, too. – Brad