Hello,
Access version 2002, SP3
This is my first post ever, so please be kind. Problem: I have a command button that "selects all" check boxes in a subform which is based on a table(datasheet view). I have another button that deselects all check boxes. I can do one or the other, but only once without exiting the form and restarting it. In other words, I can select all, but i want the end user to be able to deselect in case the select all click was a mistake. Since the code is almost identical for both buttons, I will provide the select all code:
Thank you in advance for your help!
Access version 2002, SP3
This is my first post ever, so please be kind. Problem: I have a command button that "selects all" check boxes in a subform which is based on a table(datasheet view). I have another button that deselects all check boxes. I can do one or the other, but only once without exiting the form and restarting it. In other words, I can select all, but i want the end user to be able to deselect in case the select all click was a mistake. Since the code is almost identical for both buttons, I will provide the select all code:
Code:
Private Sub btnCheckSA_Click() Dim rs As DAO.Recordset Set rs = Forms!FollowUpForm!FollowUpTableForm.Form.RecordsetClone If Not rs.EOF Then Do Until rs.EOF rs.Edit rs!CheckBox = True rs.Update rs.MoveNext Loop Forms![FollowUpForm]![FollowUpTableForm].Form.Refresh Me.Refresh End If Me!btncheckSA.SetFocus Set rs = Nothing End Sub
Comment