Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a form with 3 option buttons, and about 50 labels, textboxes, and buttons. Is there a way I can group some of these objects so that way when I select an option, some of the objects get disabled or enabled and I only have to use vba to say which group is enabled or disabled? Or will I have to write vba for each object and have 1000 lines of code?

share|improve this question

I would tackle this kind of problem with custom collections in Access. I've written at length on that here:

How to Use Controls Collection in Access 2003 and VBA

share|improve this answer
Thank You for your help. – Dan Sep 23 '11 at 12:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.