>Nick,
>I was referring to the Tag property of Label fields
>.i.e ThisField.Tag where thisfield happens to be a label
Then it is more difficult, because the textbox knows what it's controlsource is, but the label does not know which textbox it belongs to. If you create your labels and textboxes by dragging the field to the form from the Dataenvironment therefore they have common parts in their names, then more elaborated code could do this. But, why do you want to set label.Tag to the name of the coressponding textbox.controlsource field?
>>>=IIF("." $ this.controlsource,SUBSTR(this.controlsource, AT(".",this.controlsource)+1), this.controlsource)
>
>Where would you type in this text ?
>
I meant to type it right in the PEM sheet in the Tag property
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison