Dear Les M
Welcome and thank you for sharing your issues in the Q&A forum.
Based on the information you provided, you require a more efficient programming method, using a single routine by assigning the same event handler to all relevant checkboxes. This single routine will check the status of the individual checkbox that was clicked to adjust the state of the "CLEAR ALL DATA" checkbox. This approach avoids the need to write multiple separate functions.
To provide you with the best support, please confirm which application you are using (for example: Microsoft Access, Excel VBA). If the single routine solution does not work, please check the following three points again:
- Do the checkbox names match the names used in the code?
- Has the On Click event of all the data checkboxes been assigned to
HandleDataSelectionChange? - Is the logic for the CLEAR ALL DATA checkbox working correctly (i.e., does it automatically select all other items when it is clicked)?
Thank you for your cooperation. We look forward to assisting you further and resolving this matter promptly