Hi Expert,
I want to clear all fields in a format when I push my clear button except for the textbox ' Date ' which contains the current date as a default value.
I'm using the following code:
Dim ctl As Control
For Each ctl In Me.Section(acDe tail).Controls
Select Case ctl.ControlType
Case acTextBox, acComboBox
ctl.Value = Null
Case acCheckBox
ctl.Value = True
End Select
Next
Me.Filter = "(false)"
Me.FilterOn = True
This cleans all fields.
Can you help me out?
Thank you,
Tom
I want to clear all fields in a format when I push my clear button except for the textbox ' Date ' which contains the current date as a default value.
I'm using the following code:
Dim ctl As Control
For Each ctl In Me.Section(acDe tail).Controls
Select Case ctl.ControlType
Case acTextBox, acComboBox
ctl.Value = Null
Case acCheckBox
ctl.Value = True
End Select
Next
Me.Filter = "(false)"
Me.FilterOn = True
This cleans all fields.
Can you help me out?
Thank you,
Tom
Comment