Reading text from a control's attached label in Access?

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

Guest

When setting focus to an active control, I'm trying to read\extract text from
a label's caption property...but just can't seem to get this piece of the
procedure right programmatically. I'm currently copying the text into the
control's TAG property in order to extract information, but this is tedious
at best when you have a large number of controls to deal with! Has anyone
attempted this and had it work right?
 
When setting focus to an active control, I'm trying to read\extract text from
a label's caption property...but just can't seem to get this piece of the
procedure right programmatically. I'm currently copying the text into the
control's TAG property in order to extract information, but this is tedious
at best when you have a large number of controls to deal with! Has anyone
attempted this and had it work right?

try

Me!YourTextControl.Controls("<Name of label>").Caption

HTH

Matthias Kläy
 
Back
Top