techkenny1
Technical User
I have a continous form on which i have a checkbox in the hdr and a checkbox in the detail section.
I want to be able to either check or uncheck the checkboxes in the detail section by the checkbox in the header. i have used this code, but could someone modify this so that is works.
Private Sub CHK2_AfterUpdate()
If Chk2 Then
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
Do
rst.Edit
rst![CHK1] = Me![Chk2]
rst.Update
rst.MoveNext
Loop Until rst.EOF
Else
End If
End Sub
Chk1 is in the detail section and chk2 is in the hdr
Many thanks
I want to be able to either check or uncheck the checkboxes in the detail section by the checkbox in the header. i have used this code, but could someone modify this so that is works.
Private Sub CHK2_AfterUpdate()
If Chk2 Then
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
Do
rst.Edit
rst![CHK1] = Me![Chk2]
rst.Update
rst.MoveNext
Loop Until rst.EOF
Else
End If
End Sub
Chk1 is in the detail section and chk2 is in the hdr
Many thanks