Link a main report and a subreport

Link a main report and a subreport

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

  1. Open the main report in Design view.

  2. To display the property sheet, make sure the subreport control is selected, and then click Properties on the toolbar.

  3. Set the linking fields. 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, you must enter the names in the same order in the LinkChildFields and LinkMasterFields properties.

    Note   You can't use the name of a control in the LinkChildFields property box.

    If you're unsure what the linking field(s) should be, click the Build button next to either property box to open the Subform/Subreport Field Linker.

Notes