Label Linking

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello All

How Can I Know If There Is A Label Linked To The Combo Box Or Text Bos
(When You Drag Any Field From The Table Fields To The Form The Field Appears
As A Text Box And A Lable Holding Its Name So When You Click in The Label At
The Run Time The Focus Will Be Set To The Text Box) So I Need To Know How
Can I Determined If A Text Box Has A Linked Field Or Not In The Code

Thanks For All
 
999 said:
Hello All

How Can I Know If There Is A Label Linked To The Combo Box Or Text Bos
(When You Drag Any Field From The Table Fields To The Form The Field
Appears As A Text Box And A Lable Holding Its Name So When You Click
in The Label At The Run Time The Focus Will Be Set To The Text Box)
So I Need To Know How Can I Determined If A Text Box Has A Linked
Field Or Not In The Code
Thanks For All

Controls that can have an attached label have their own Controls collection. It
will either have zero members or exactly one member which would be the attached
label. So for a control with an attached label this expression...

Forms!FormName!ControlName.Controls.Count

....will return the value of 1. For a control without an attached label it will
return zero.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top