W
Walter
This another question related to a previous post by RickB
earlier. How do you include the control's label in the
hide/show process indicated? I understand how to use the
Tag property and "If ctl.tag = "TagName" to indentify
specific controls since I don't need to include all of
the form's contorls in this process. Since I need to set
the Enabled Property, if I include the labels in the Tag,
I get an error because Enable is not a label Property.
form's OnCurrent Event
Dim C As Control
For Each C In Me.Controls
If C.Tag = "Option" Then
C.Visible = False
C.Enabled = False
Next
Also, if a control contains data, i.e. was activated by
criteria in another control thereby allowing data entry,
how do you include this to make this control and it's
label visible when you return to this record?
I appreciate your help,
Walter
earlier. How do you include the control's label in the
hide/show process indicated? I understand how to use the
Tag property and "If ctl.tag = "TagName" to indentify
specific controls since I don't need to include all of
the form's contorls in this process. Since I need to set
the Enabled Property, if I include the labels in the Tag,
I get an error because Enable is not a label Property.
form's OnCurrent Event
Dim C As Control
For Each C In Me.Controls
If C.Tag = "Option" Then
C.Visible = False
C.Enabled = False
Next
Also, if a control contains data, i.e. was activated by
criteria in another control thereby allowing data entry,
how do you include this to make this control and it's
label visible when you return to this record?
I appreciate your help,
Walter