kbrooks
Still learning
- Local time
- Today, 17:39
- Joined
- May 15, 2001
- Messages
- 202
I have a combo box called OccurrenceCategory, and several text boxes following it. I want certain text boxes to be visible depending on which value is picked in the combo box.
For example, if "Fall" is the choice made in the combo box, I want the "IfFall" text box to be visible. For all other choices, I don't want it visible.
If "Medication" is the choice made in the combo box, I want the "IfMedication" and "MedicationRoute" text boxes to be visible. For all other choices, I don't want them visible.
I started by making the properties of all text boxes "Visible?" a NO, and figured the code would turn them "on" when needed. I've used a If/Then statement before but never for more than one option in a combo box. I assume I need a case statement here? My VB knowledge is very limited, so any help you can give me is MUCH appreciated!!
For example, if "Fall" is the choice made in the combo box, I want the "IfFall" text box to be visible. For all other choices, I don't want it visible.
If "Medication" is the choice made in the combo box, I want the "IfMedication" and "MedicationRoute" text boxes to be visible. For all other choices, I don't want them visible.
I started by making the properties of all text boxes "Visible?" a NO, and figured the code would turn them "on" when needed. I've used a If/Then statement before but never for more than one option in a combo box. I assume I need a case statement here? My VB knowledge is very limited, so any help you can give me is MUCH appreciated!!