in trying to clear all the input boxes on my form..
i have a textbox and combobox.. and i have found the code for clearing all textboxes which is:
For Each Control In Me.Controls
If TypeName(Control) = "TextBox" Then
Control.text = ""
End If
Next
the only thing to do is to clear all my comboboxes. by following the syntax but it doesn't work.
For Each Control In Me.Controls
If TypeName(Control) = "comboBox" Then
Control.text = "" 'or control.clear
End If
Next