To start with ou need a common field that the 2 forms can link on. Then you need to add the details of the 'linking' fields to the subofrms Data properties as follows:
Open the properties for the subform.
Click on the Data tab.
Enter the linking field for the main form in the 'Link Master...