Reading Label Name Property

kirkm

Registered User.
Local time
Today, 20:26
Joined
Oct 30, 2008
Messages
1,257
In text Box Properties under Other there is a entry for Label Name.
What would be the command to get that name in code ? Once I have that I presume I'll be able to read it's caption ?
Thanks for any help.
 
Code:
textboxname.Controls(0).Name

textboxname.Controls(0).Caption
 
Thanks, but my problem could be how I get textboxname, which is
Me!subForm1.Form.ActiveControl.Name.Controls(0).Caption
returns error 424 Object required
 
Me!subform1.Form.ActiveControl.Controls(0).Caption
 
Brilliant, many thanks, that did it.
 

Users who are viewing this thread

Back
Top Bottom