i have some comboboxes and some textboxes on a form
i would like to clear all of them with one line of code. is that possible?
something like all_controls.text=""
i have some comboboxes and some textboxes on a form
i would like to clear all of them with one line of code. is that possible?
something like all_controls.text=""
Not with one line of code. You will have to walk through all of the controls with a loop.
Dim ctl As Control
For Each ctl In Me.Controls
If (ctl.ControlType = acTextBox) Then
ctl.Value = Null
End If
Next ctl