[AccessD] Name of label associated with a text box

Darryl Collins darryl at whittleconsulting.com.au
Thu Dec 18 17:03:13 CST 2014


As point I always rename the default choice, if only slightly.  I find this prevents SNAFU's when debugging et al .

ctlMyName
lblMyName
txtMyName.

You get the idea.

Cheers
Darryl.



-----Original Message-----
From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins
Sent: Friday, 19 December 2014 9:28 AM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Name of label associated with a text box

Programmatically you mean? I mean, you can always select it and find it in the Property Sheet. But typically, unless you rename it, it will use the same name as its corresponding control...

Name
Name_Label

Susan H.

On Thu, Dec 18, 2014 at 1:59 PM, Rocky Smolin <rockysmolin at bchacc.com>
wrote:
>
> Dear List:
>
> I need to get the name of the label associated with a text box or 
> combo box.
> I can get the name of the control no problem using 
> Screen.ActiveControl.Name.  Is there a way then to get the name of the 
> label attached to that control?
>
> MTIA
>
> Rocky Smolin
> Beach Access Software
> 858-259-4334
> www.bchacc.com <http://www.bchacc.com/> www.e-z-mrp.com 
> <http://www.e-z-mrp.com/>
> Skype: rocky.smolin
>
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list