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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display Name of active Subform on Mainform 1

Status
Not open for further replies.

peterworm

Programmer
Aug 4, 2003
14
DE
Hi,
I have a Mainform and several Subforms. I'm switching the subforms by changing the SourceObject. How can I display the Caption of the active Subform in a textbox on the mainform.

Thank you for help.

peterworm
 
The next line after setting the SourceObject:
[tt]
txtTheActiveSubForm = me.chdSubForm.Form.Caption
[/tt]
 
Thank You for your help. I just had to change
'txtTheActiveSubForm'
to
'Forms!frmMainFormSituConfig.ShowActiveSubformText =', because I use change SourceObject in another SubForm.
It works fine.

Peter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top