techkenny1
Technical User
Hi,
I have on a continous form a bound checkbox to select certain records.
In the HDR of the form I have an unbound checkbox that I want to when checked, deselct all the records that have been selected by a checkbox.
I have used this code to select records, but I want to do the reverse.
How can I change this code to do that.
Private Sub CHK2_AfterUpdate()
Dim rst As DAO.Recordset
Set rst = Me.Recordset
With rst
.MoveFirst
Do
.Edit
![CHK1] = Me![Chk2]
.Update
.MoveNext
Loop Until .EOF
End With
End Sub
Many thanks,
kp
I have on a continous form a bound checkbox to select certain records.
In the HDR of the form I have an unbound checkbox that I want to when checked, deselct all the records that have been selected by a checkbox.
I have used this code to select records, but I want to do the reverse.
How can I change this code to do that.
Private Sub CHK2_AfterUpdate()
Dim rst As DAO.Recordset
Set rst = Me.Recordset
With rst
.MoveFirst
Do
.Edit
![CHK1] = Me![Chk2]
.Update
.MoveNext
Loop Until .EOF
End With
End Sub
Many thanks,
kp