Background:
Front end: MS Access 2013
Back end: SQL Server 2008
I have a program that does the following:
I get the following error when I run the program. What is wrong?
Error#: 3164 Field cannot be updated
Front end: MS Access 2013
Back end: SQL Server 2008
I have a program that does the following:
Code:
' open Work_Downtime query
Dim rsQ As DAO.Recordset
Dim dbQ As Database
Set dbQ = CurrentDb
Set rsQ = dbQ.OpenRecordset("Q_dbo_tblDowntime", dbOpenDynaset, dbSeeChanges)
' are their records to delete?
If rsQ.RecordCount = 0 Then GoTo noQRecords
Dim downtime As Integer
' position to read
rsQ.MoveFirst
While Not rsQ.EOF
If rsQ.Fields("FixReject") = "0" Then
downtime = DateDiff("n", rsQ.Fields("Start_Datetime"), rsQ.Fields("End_DateTime"))
End If
rsQ.Edit
rsQ.Fields("DT") = downtime
rsQ.Update
rsQ.MoveNext
Wend
Error#: 3164 Field cannot be updated
Comment