A
Aria
I’m using Allen Browne’s search form in my classroom coverage db. When there
are no records to display, a message box appears stating this fact (received
code from a kind person here). It works great except when the message
appears. Once the message appears, the reset button seems disabled. It
doesn’t clear the text and combo boxes. Can anyone tell me what I need to do
to fix it? Be advised, I’m still pretty new to coding.
I don’t know exactly what you need to know, but here is the code from the On
click event:
'Purpose: Clear all the search boxes in the Form Header, and show all
records again.
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 = False
End Select
Next
'Remove the form's filter.
Me.Filter = "(False)"
Me.FilterOn = True
ExitHere:
Exit Sub
are no records to display, a message box appears stating this fact (received
code from a kind person here). It works great except when the message
appears. Once the message appears, the reset button seems disabled. It
doesn’t clear the text and combo boxes. Can anyone tell me what I need to do
to fix it? Be advised, I’m still pretty new to coding.
I don’t know exactly what you need to know, but here is the code from the On
click event:
'Purpose: Clear all the search boxes in the Form Header, and show all
records again.
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 = False
End Select
Next
'Remove the form's filter.
Me.Filter = "(False)"
Me.FilterOn = True
ExitHere:
Exit Sub