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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top