Looking at Text Box properties the first 3 entries are
Name
Label Name
Control Source
So I try:This gives an error on LabelName. I can't leave in the space and ctl.[Label Name]Code:For Each ctl In Form_xxx.subFormyyyy.Controls If ctl.ControlType = acTextBox Then Debug.Print ctl.Name, ctl.ControlSource, ctl.LabelName End If Next
doesn't work eitehr. But the space in "Control Source" can be removed and no error.
Why not the same for label name and how can it be debug printed?
Thanks.