Link a main form and a subform

Link a main form and a subform

If you create a subform with the Form Wizard or the Subform Wizard, Microsoft Access automatically links the main form with the subform under certain conditions. For more information, click . If your main form and subform don't meet these conditions, you can use this procedure to link them.

  1. Open the main form in Design view.

  2. Make sure the subform control is selected, and then click Properties on the toolbar to display the property sheet for the subform control.

  3. Type the linking fields or controls in the LinkChildFields and LinkMasterFields properties. To enter more than one linking field or control, separate the field or control names with a semicolon. If you enter more than one field or control name, you must enter the names in the same order in both properties.
  4. Switch to Form view to test the link.

Notes