I am sorry if repeating some older answers, but I cannot figure it out. I have Access form, connected to db, which is filtered by some fields and some vba procedures to operate it.
There is select which define my recordset:
strsearch = "Select * from T1 left join DatT2M on T1.ID = DatT2M.RefID where ((Mesto like ""*" & strtextM & "*"" and (DatT2M.DatumT2M > " & DatK_od & " and DatT2M.DatumT2M < " & DatK_do & ") and (T1.DatumDK > " & DatDK_od & " and T1.DatumDK < " & DatDK_do & ") ))"
T1 and T2 are linked tables from db,
Dat2M is "auxiliary" query to find last date of update:
SELECT T2.RefID, Max(T2.Datum) AS DatumT2M
FROM T2
GROUP BY T2.RefID
HAVING (((T2.RefID) Is Not Null));
and after_update of field I save them by this VBA function:
With Me.Recordset
.Edit
.Fields("[uzivatel]") = uzivDB
.Update
End With
DoCmd.RunCommand acCmdSaveRecord.
When I update some field of form, some sound appear and in the left corner of Access window is written "Recordset is not updateable".
Can you tell me, what have I change I my code, to make it updateable and write values to database tables, please?