Weebairnes
Programmer
I have a form with a text box control named "txtName." Associated with this text box control is the label, "lbl1". The caption property of lbl1 is, "Enter your name:"
I can refer the label in VBA as me.lbl1. From here I can change format properties, the caption, etc.
I can refer to the text box as me.txtName and then get to a whole host of properties. Its fontsize, controlsource, backcolor, etc. However, regarding label properties for the control txtName, all I see is three properties: LabelAlign, LabelX, LabelY.
Now, lets say I don't know the name of the associated label. Is there a way to change or get the label caption from lbl1 if I am currently accessing me.txtName?
I can refer the label in VBA as me.lbl1. From here I can change format properties, the caption, etc.
I can refer to the text box as me.txtName and then get to a whole host of properties. Its fontsize, controlsource, backcolor, etc. However, regarding label properties for the control txtName, all I see is three properties: LabelAlign, LabelX, LabelY.
Now, lets say I don't know the name of the associated label. Is there a way to change or get the label caption from lbl1 if I am currently accessing me.txtName?