I need to attach a label to a textbox and I'd like to know where in the property sheet I can do it or how to do it.
thanks in advance.
19-Mar-2015 (8:45 am) at Rio de Janeiro
I'd like to share this code for manipulation of parent/child controls:
Private Sub Comando15_Click()
On Error GoTo Err_Handler
Dim ctl As Control
For Each ctl In Me.Form.Controls
With ctl
If .ControlType = acLabel Then
If .Parent.Name <> Me.Form.Name Then
MsgBox "Controle Pai: " & Chr(13) + Chr(10) & .Parent.Name & Chr(13) + Chr(10) + Chr(10) & _
"Controle Filho: " & Chr(13) + Chr(10) & .Name
End If
End If
End With
Next ctl
Exit_Handler: Exit Sub Err_Handler: MsgBox Err.Description, vbExclamation, "Error No: " & Err.Number Resume Exit_Handler End Sub