N
Nick
I am trying to use a code found in this message board but am unable to get to
clear when form is closed. I do have this code in the "on close" in form
properties. Dim ctl As Access.Control
For Each ctl In Me.Controls
If (ctl.ControlType = acCheckBox) Then
ctl.Value = Null
End If
Next ctl
I select the checkboxes that run a query/report. If I do not run the report
the check boxes selected will clear but if I run the report and then close
the form only the last checkboxes will clear and the (ctl.Value = Null)
will be highlited in VBA window.
clear when form is closed. I do have this code in the "on close" in form
properties. Dim ctl As Access.Control
For Each ctl In Me.Controls
If (ctl.ControlType = acCheckBox) Then
ctl.Value = Null
End If
Next ctl
I select the checkboxes that run a query/report. If I do not run the report
the check boxes selected will clear but if I run the report and then close
the form only the last checkboxes will clear and the (ctl.Value = Null)
will be highlited in VBA window.