unlink a subform with VBA

S

salmonella

is it possible to access the linkmasterfields/linkchildfields property with
VB in order to unlink/relink a subform from the parent form, if so, how?

thanks
 
D

Douglas J. Steele

Me!NameOfSubformControl.LinkChildFields = "Field1;Field2"
Me!NameOfSubformControl.LinkMasterFields = "FieldA;FieldB"

Note that you're referring to the subform control on the form. Depending on
how you added the subform to the parent form, the name of the subform
control on the parent form may not be the same as the name of the form being
used as a subform.
 
Top