Hi, i'm trying to create a form that uses and unbound subform; this is the easy part but, that unbound subform will change change when i click a CMD botton. and also the LinkMasterFields/LinkChildFields will change because i'm changing that subform to another subform. this is the code i'm using, but they are not linking together.
Private Sub Command62_Click()
If Form1.SourceObject <> "TABLA-PERFIL-ESTUDIANTIL subform" Then
Me.Form1.SourceObject = "TABLA-PERFIL-ESTUDIANTIL subform"
Me.Form1.LinkChildFields = Forms![Copy Of Form_Principal]![CODIGO].Value
Me.Form1.LinkMasterFields = Forms![Copy Of Form_Principal]![CODIGO].Value
Me.Form1.SetFocus
End If
End Sub
Thanks in advance
Private Sub Command62_Click()
If Form1.SourceObject <> "TABLA-PERFIL-ESTUDIANTIL subform" Then
Me.Form1.SourceObject = "TABLA-PERFIL-ESTUDIANTIL subform"
Me.Form1.LinkChildFields = Forms![Copy Of Form_Principal]![CODIGO].Value
Me.Form1.LinkMasterFields = Forms![Copy Of Form_Principal]![CODIGO].Value
Me.Form1.SetFocus
End If
End Sub
Thanks in advance