Is this what you're talking about?
To Tick Checkbox on All Records
Code:
Private Sub TickCheckBoxAllRecords_Click()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("YourTableName")
Do While Not rs.EOF
rs.Edit
rs!CheckBoxName = -1
rs.Update
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
Me.Requery
End Sub
To Clear Checkbox on all Records
Code:
Private Sub ClearCheckBoxAllRecords_Click()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("YourTableName")
Do While Not rs.EOF
rs.Edit
rs!CheckBoxName = 0
rs.Update
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
Me.Requery
End Sub
Replace CheckBoxName with the actual name of your Checkbox
Replace YourTableName with the actual name of your Table or Query.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007