Morning everyone,
Despite a fair few searches I've not been able to find the answer to a problem I'm having.
I have a combobox with a list of countries (around 300 values). These countries all have a value between 1 and 10 depending on what status they have. On the same form is a subform with 10 groups of controls. I have grouped them together using the Tag property (we can call these 'A', 'B','C' etc...)
I'd like these groups of controls to be shown or hidden based on the value selected in the combobox. For example, if "Afghanistan" is selected then control groups A and C are shown but B is hidden, if 'The Bahamas' is selected then all groups are shown etc.
I'm hoping this is possible. I'm familiar with doing this with fewer controls but there are around 80 in total on the form and I'm not sure the method I know of is the most efficient (referencing each one by name individually).
I hope all of that makes sense. Thanks for any help in advance.
Cheers
David
Despite a fair few searches I've not been able to find the answer to a problem I'm having.
I have a combobox with a list of countries (around 300 values). These countries all have a value between 1 and 10 depending on what status they have. On the same form is a subform with 10 groups of controls. I have grouped them together using the Tag property (we can call these 'A', 'B','C' etc...)
I'd like these groups of controls to be shown or hidden based on the value selected in the combobox. For example, if "Afghanistan" is selected then control groups A and C are shown but B is hidden, if 'The Bahamas' is selected then all groups are shown etc.
I'm hoping this is possible. I'm familiar with doing this with fewer controls but there are around 80 in total on the form and I'm not sure the method I know of is the most efficient (referencing each one by name individually).
I hope all of that makes sense. Thanks for any help in advance.
Cheers
David