Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I populate a text box with the caption from the parent form? 1

Status
Not open for further replies.

djayam

Technical User
Aug 16, 2005
95
GB
Hi all,

I have searched amongst the posts but cannot find an answer.

I have a form "frm_Header" which I nest in all main forms so that I only have to make changes to it once. I want a text-box within frm_Header to display the Caption value from its parent form but just can't get the syntax correct!

=[Forms]![frm_Login].[Caption] works fine (The parent form in this case is frm_Login). How do I get it to display the Caption value from whatever the parent form is?

Thanks in advance,

Jason
 
You can use Caption by itself:

=[caption]

 
Thanks for your response Remou, but that just gives the caption of frm_Header. I need the text-box (in frm_Header) to display the caption for the form it is nested inside (e.g. frm_Login)

Does that make sense?

Cheers,

Jason
 
Knew it would be simple.

Many thanks Remou...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top