PDA

View Full Version : Get Controls Associated Label Name



DarkSprout
03-17-2008, 07:39 AM
As the title suggests - through code, how can I get the name of an Associated Label with any one control, such as a TextBox or a CheckBox?

it's a puzzler!
=DarkSprout=

OTWarrior
03-17-2008, 08:10 AM
try this:

MsgBox Me.ActiveControl.Name

DarkSprout
03-17-2008, 09:47 AM
No Sorry, It's the Label that is Associated with the ActiveControl.