Attached Control

M

Mary Fetsch

In Access 2000, I know you can attach a control (eg, combo box) and its
label. In Visual Basic, if you access an attached label, is there an easy
way to identify the control it's attached to?
 
K

Ken Snell [MVP]

Use the Parent property of the label:

NameOfAttachedTextBox = Me.LabelControlName.Parent.Name
 
Top