You can loop through all of the labels, and check what the parent is.
Dim ctlCurr As Control
For Each ctlCurr In Me.Controls
If TypeOf ctlCurr Is Label Then
If ctlCurr.Parent.Name = "MyDesiredControl" Then
MsgBox "Label " & ctlCurr.Name & " is associated with
MyDesiredControl"
Exit For
End If
End If
Next ctlCurr
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.