Name Control in a Subform

  • Thread starter Thread starter David W
  • Start date Start date
D

David W

Is there a way to name a textbox in a subform in datasheet view?

I am trying to use the same form and subform to view different tables. I can
set the recordsource for the subform, and I can set the textbox's
controlsource, but what I cant do is to name the textbox. Is there a way? I
would like for the textboxes to say what the name of its controlsource.

Thanks,,
David
 
David said:
Is there a way to name a textbox in a subform in datasheet view?

I am trying to use the same form and subform to view different tables. I can
set the recordsource for the subform, and I can set the textbox's
controlsource, but what I cant do is to name the textbox. Is there a way? I
would like for the textboxes to say what the name of its controlsource.


I seriously doubt that you want to change the Name property
of a text box. Most likely, you're asking about the column
header text.

If so, you want to change the Caption property of the text
box's attached label control:

Me.textbox.Controls(0).Caption=Me.textbox.ControlSource
 
Back
Top