Setting Links for subforms thru code

  • Thread starter Thread starter T Best
  • Start date Start date
T

T Best

Hi all,

I have a subform that will have its SourceObject change depending on what a
user selects in a combo box. the source object changes but how do i set the
"Link Child Fields" and "Link Master Fields" thru code?

Ted
 
Forms!MainForm!SubformControl.LinkMasterFields = "FieldsFromMainForm"
Forms!MainForm!SubformControl.LinkChildFields = "FieldsFromSubForm"
 
Back
Top