newprogamer
Programmer
Hello,
Is there a way to clear all the text boxes/ combo boxes at once. Currently, when I click the clear button it only clears one combo box/ text box. I have to click the clear box once for every box I want to clear. I thought it would clear everything with one click. Is there a way to do this? Any help would be greatly appreciated. My code is below.
Private Sub cmdClearGeneral_Click()
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
ComboBox4.Text = ""
ComboBox5.Text = ""
ComboBox6.Text = ""
End Sub
Thanks,
NewProgrammer
Is there a way to clear all the text boxes/ combo boxes at once. Currently, when I click the clear button it only clears one combo box/ text box. I have to click the clear box once for every box I want to clear. I thought it would clear everything with one click. Is there a way to do this? Any help would be greatly appreciated. My code is below.
Private Sub cmdClearGeneral_Click()
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
ComboBox4.Text = ""
ComboBox5.Text = ""
ComboBox6.Text = ""
End Sub
Thanks,
NewProgrammer