jt463
IS-IT--Management
- Nov 23, 2005
- 134
I have a form that has a couple hundred labels that I need to have some display and some remain invisible based on a category flag on a table.
(I don't know how to avoid this - which is a separate issue.)
Bottom line is I have 18 rooms for each of 26 different plans - all unique combinations. So, based on the plan, only the 18 rooms associated with that plan will display.
My problem is that 468 lines makes the Private Sub procedure too large. So, I am trying to call Public Functions that will make certain controls visible and invisible.
Is there some syntax that will allow me to make a form's control visible/invisible?
I am thinking maybe something similar to:
Because Me.Room1A.Visible doesn't work since it is a Public function.
Thanks in advance.
(I don't know how to avoid this - which is a separate issue.)
Bottom line is I have 18 rooms for each of 26 different plans - all unique combinations. So, based on the plan, only the 18 rooms associated with that plan will display.
My problem is that 468 lines makes the Private Sub procedure too large. So, I am trying to call Public Functions that will make certain controls visible and invisible.
Is there some syntax that will allow me to make a form's control visible/invisible?
I am thinking maybe something similar to:
Code:
[Forms]![COFlooring]![Room1A].visible
[Forms]![COFlooring]![Room1B].visible
Because Me.Room1A.Visible doesn't work since it is a Public function.
Thanks in advance.