Hello,
What is the correct code to uncheck ALL checkboxes in a subform when an user clicks on "cancel" button on a main form?
Here is the code I have tried to use - to no success:
I suspect it is the reference error. Debug leads me to the red highlighted area.Code:Private Sub btnReturn_Click() Dim ctl As Control For Each ctl In Me!frmSupport_CARptUpdate_Subform.Form If ctl.ControlType = acCheckBox Then ctl = False End If Next DoCmd.Close End Sub
Thanks!