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

Subform Source Object?

Status
Not open for further replies.

Xenos132

Technical User
Dec 12, 2004
43
CA
Is there a way to change my Subforms source object from a command button on my subform. What I am trying to do is have a welcome subform, That when the user clinks on a link it just changes the subforms source object

 
Perhaps:
Code:
Private Sub cmdCommand_Click()
Me.Parent.[i][Subform control name][/i].SourceObject = [i]"Form Name"[/i]
End Sub

It is important that you use the name of the subform control, not the name of the object contained.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top