For Each cntl In Me.Controls
Select Case cntl.ControlType
Case acTextBox
Do your text box stuff here(check the name using cntl.Name)
Case acComboBox
Do your combo box stuff here
etc for acCheckBox or acRadioButton or acListBox
End Select
Next cntl
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.