## Subreport dialog

This dialog appears when you click Insert > Subreport (or click the Insert Subreport button on the Insert toolbar). It allows a report (referred to as the subreport) to be inserted into another report (referred to as the primary report).

The following are details about options in the dialog:

Select Subreport Set

Specifies the subreport set.

Subreport

Specifies the report in the subreport set as the subreport.

Field tab

Specifies some links between the primary report and subreport. See the tab.

- Component in Report
  Lists the components in the subreport that will be inserted into the primary report.
  - Add
    Specifies which component in the subreport will be inserted into the primary report.
  - Remove
    Removes the selected component in the Component in Report box.
- Adds a field of the primary report to set up links between the primary report and the subreport as required.
- Removes the selected field.
- Field
  Lists all the fields that are used in the link conditions.
  - Fields(Primary)
    Lists the selected fields of the primary report.
  - OP
    Specifies the operator to be the condition for setting up links between the primary report and the subreport.
  - Fields(Subreport)
    Lists the DBFields in the datasets of the subreport which are of the same data type as the selected fields in the primary report.

Parameters tab

Available only when there is at least a parameter in the subreport. It helps you to specify values for all parameters in the subreport. See the tab.

- Parameters
  Lists all the parameters contained in the datasets of the subreport.
- Value
  Lists all the DBFields, formulas, summaries and parameters in the dataset of the primary report which are of the same data type as the parameters of the subreport.

Return Value tab

Specifies values of the subreport fields to be returned as the primary report parameter values. See the tab.

- Component in Report
  Specifies the component in the subreport the fields of which will be used to return value to parameters of the primary report.
- Fields in Subreport
  Lists all available fields, formulas, and parameters used by the specified component in the subreport.
- Adds a field that you want to assign to a parameter in the primary report.
- Removes the selected field.
- Return Value
  Lists all the fields in the specified component of the subreport that will be used to return value to parameters of the primary report.
  - Fields
    Lists all the selected fields from the specified component in the subreport.
  - Parameters
    Lists all the parameters in the primary report which are of the same data type as the fields selected in the specified component of the subreport.

OK

Applies all changes and closes the dialog.

Cancel

Does not retain any changes and closes the dialog.

Help

Displays this help document.

###### Related topics:

- Components - Subreports