Originally Posted by
jlgray0127
Uh... After I applied this to the other boxes, Slowed the database way down... takes about 6 minutes to run, and only runs for checkbox 2.
Here's what I'm doing...
I have a row of check boxes. Under the checkboxes, there is a row of textboxes. If the checkbox above the text boxes is clicked, it hides the text boxes. I want it so when I click the first box, it will run the code to hide all text boxes after... so, check box 2, hides all the text box rows that follow... if I put the same code for each check box, to hide the text boxes that follow... won't it try to inadvertly hide everything over and over again... each checkbox references the new code, so if I click box.. below is sample for box 1 and box 2... There are a total of 20 checkboxes.
Private Sub Check225_AfterUpdate()
Check280_AfterUpdate
Check282_AfterUpdate
Check284_AfterUpdate
Check286_AfterUpdate
Check288_AfterUpdate
Check290_AfterUpdate
Check292_AfterUpdate
Check294_AfterUpdate
Check296_AfterUpdate
Check298_AfterUpdate
Check300_AfterUpdate
Check527_AfterUpdate
Check488_AfterUpdate
Check489_AfterUpdate
Check490_AfterUpdate
Check491_AfterUpdate
Check524_AfterUpdate
Check525_AfterUpdate
Check526_AfterUpdate
Private Sub Check280_AfterUpdate()
Check282_AfterUpdate
Check284_AfterUpdate
Check286_AfterUpdate
Check288_AfterUpdate
Check290_AfterUpdate
Check292_AfterUpdate
Check294_AfterUpdate
Check296_AfterUpdate
Check298_AfterUpdate
Check300_AfterUpdate
Check527_AfterUpdate
Check488_AfterUpdate
Check489_AfterUpdate
Check490_AfterUpdate
Check491_AfterUpdate
Check524_AfterUpdate
Check525_AfterUpdate
Check526_AfterUpdate