Setting Links for subforms thru code

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
 
V

Van T. Dinh

Forms!MainForm!SubformControl.LinkMasterFields = "FieldsFromMainForm"
Forms!MainForm!SubformControl.LinkChildFields = "FieldsFromSubForm"
 

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

Similar Threads


Top