Hi all,
I get a write conflict on only the last record when I run the below Loop. Any suggestions?
Code:Private Sub btn_assign_Click() Dim rst As Recordset, i As Integer Set rst = Me.RecordsetClone i = 0 rst.MoveFirst Do While i < 25 i = i + 1 rst.Edit If rst![reinstated_1] = True Then rst![file_assigned_to] = Me.Form!assign_to rst![current_wf] = "Assigned - Reinstate Follow Up" rst![date_assigned] = Date Else rst![file_assigned_to] = Me.Form!assign_to rst![current_wf] = "Assigned - Pending Review" rst![date_assigned] = Date End If rst.Update rst.MoveNext Loop MsgBox i & "assigned." rst.Close Set rst = Nothing DoCmd.Requery End Sub