Link Master Field

  • Thread starter Thread starter JKlein
  • Start date Start date
J

JKlein

Is there a way to change the Link Master Field of a subform by code?
I have tried to create a function and place it in the Link Master Field
property of the subform and then change the function value in code but this
does not work.
 
JKlein said:
Is there a way to change the Link Master Field of a subform by code?
I have tried to create a function and place it in the Link Master
Field property of the subform and then change the function value in
code but this does not work.

You can just assign a value directly to the LinkMasterFields propery of
the subform control, if that's what you mean. For example,

Forms!MainForm!Subform1.LinkMasterFields = "Field2"
 
Back
Top