Morning, I am trying to figure out how to make my reset button work for a file search.
I need all the fields cleared when it's pressed. There are about 20 fields ranging from cbo's to txt fields to y/n. all unbound.
someone had this before, getting an error on Null
Code:
Dim ctl As Control
'Clear all the controls in the Form Header section.
For Each ctl In Me.Section(acHeader).Controls
Select Case ctl.ControlType
Case acTextBox, acComboBox
ctl.Value = Null
Case acCheckBox
ctl.Value = 0
End Select
Thanks!