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!

code to activate subform

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
On my main form (F02_PANEL) in the header are a few buttons each mean to activate another subform (customer, articles ...). Below the code to do this. Not working, does not show the subform. Syntax - wrong reference - other code ?


<code>Forms!F02_PANEL![FORMSUB_EMPTY].Form.SourceObject = "FORMSUB_CUST"
Forms!F02_PANEL![FORMSUB_EMPTY].Form.Requery</code>

thanks in advance to show the good direction.
 
What about this ?
Code:
Forms!F02_PANEL!FORMSUB_EMPTY.SourceObject = "FORMSUB_CUST"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hello,

I searched a bit in previous threads.
I found something like this, tested it and it works.
thanks to Maj in that thread.

Code:
Me.subformCard.SourceObject = "subFormJobCard"
Me.subformCard.visible = true
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top