I am not sure if this post goes here or should go in the MySQL section, anyway this is the problem.
I have an app with access frontend and SqlServer backend (sqlexpress), that works fairly well. For the sake of learning something, I decided to try with MySQL backend, So I exported the database to MySQL using Dbeaver. No problem here, except for the fact that I had to redefine the primary key for all tables.
Now, I have a simple code to modify a field in one of the tables
Code:
Private Sub AggiornaLibroSoci(NTes As String, nDate As Date)
Dim dbs As DAO.Database
Dim rstLibroSoci As DAO.Recordset
Dim strSql As String
Set dbs = CurrentDb
strSql = "SELECT * FROM LibroSoci WHERE [Numero Tessera] = " & NTes
Set rstLibroSoci = dbs.OpenRecordset(strSql, dbOpenDynaset, dbSeeChanges)
rstLibroSoci.Edit
If Month(nDate) > 8 Then
rstLibroSoci![Quota associativa] = Year(nDate) + 1
Else
rstLibroSoci![Quota associativa] = Year(nDate)
End If
rstLibroSoci.Update
rstLibroSoci.Close
Set rstLibroSoci = Nothing
End Sub
This code works ok with sqlexpress, but it fails with mysql at the instruction rstLibroSoci.update with the message:

Useless to say that I am the only user of the database, that is hosted locally on my pc, so I don't understand what is going on here. Is there something I am missing? Is there something I shoud look into? Thank you.