Hey guys, got a question about a form I am working on.
Basically, on my form, the entire bottom half is only relevant for some records. So at the top I have a check box the user can click to say whether they only need the basic text boxes up the top to enter data, or whether they also need the other fields. So basically I have a check box, and when it is ticked I want a whole bunch of text boxes, labels etc, to appear. And then when the box is unchecked, they should disappear again. Pretty Simple.
I am doing it with macros and have already done lots of other visibility controls in my database with them. What I am wondering is, is there a way to group all those items at the bottom of my form and give them a name so I can just tell it to set [groupName].Visible to Yes/No. I really don't want to make some huge macro with the condition of checkbox=true repeated a hundred times, manually setting all the items visibility to true etc.=
The only grouping I have found seems to be for formatting purposes only, where you group items together and then you can move them as one, like grouping drawn shapes in microsoft word - there doesn't seem to be any name you can reference to be able to control the properties of the group in a macro or anything.
So is there a simple way I can just select items on my form, give them a group name, and then just go [groupName].Visible = Yes ?
Basically, on my form, the entire bottom half is only relevant for some records. So at the top I have a check box the user can click to say whether they only need the basic text boxes up the top to enter data, or whether they also need the other fields. So basically I have a check box, and when it is ticked I want a whole bunch of text boxes, labels etc, to appear. And then when the box is unchecked, they should disappear again. Pretty Simple.
I am doing it with macros and have already done lots of other visibility controls in my database with them. What I am wondering is, is there a way to group all those items at the bottom of my form and give them a name so I can just tell it to set [groupName].Visible to Yes/No. I really don't want to make some huge macro with the condition of checkbox=true repeated a hundred times, manually setting all the items visibility to true etc.=
The only grouping I have found seems to be for formatting purposes only, where you group items together and then you can move them as one, like grouping drawn shapes in microsoft word - there doesn't seem to be any name you can reference to be able to control the properties of the group in a macro or anything.
So is there a simple way I can just select items on my form, give them a group name, and then just go [groupName].Visible = Yes ?