Re: Reference a field labels caption?
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Sat, 21 Jan 2006 01:40:42 +0800
If the control has an attached label, you can read its caption as:
ctl.Controls(0).Caption
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Rico" <r c o l l e n s @ h e m m i n g w a y . c o mREMOVE THIS PART IN
CAPS> wrote in message
news:Yc9Af.409363$ki.298102@xxxxxxxxxxx
> Hello,
>
> I'm looping through controls on a form, focusing on text boxes. If the
> field is null and I'd like to throw a pop up letting the user know that
> this "required" textbox is not filled out. If I show the user
> "control.controlname" then I get the txtThisIsMyField and it doesn't help
> the user much. I'd like to reference caption of the fields bound label.
> Is there any way of doing that?
.
- Prev by Date: Re: Interesting Problem......... or not so for the advanced, lol
- Next by Date: VBA question - how can i retain the double quotes from a text file after opening it through a recordset?
- Previous by thread: Dynamic Crosstab...SOS
- Next by thread: Re: Reference a field labels caption?
- Index(es):
Relevant Pages
|
Loading