Home > Tutorials > Report Manager Tutorial > Creating Advanced Reports > Creating Sub-Query Reports > Creating Advanced Reports: Sub Query Part 1
Part 1: Creating a Sub-Query Report
Step 1: Create the sub-query report
Use the Sub-Query Reports Help file to assist you with this task. Create the following sub-query report:
- Report Name: Sub-Query - Credit Notes
- Source Container: Customer Documents
- Display Field: OrderNo
Step-by-Step Solution
- Right-click the Training folder and select Add Sub Query Report option.
- Enter the name: Sub-Query - Credit Notes for the report in the Enter a Name dialog box and click OK.
- Select the CustomerDocuments container from the Select a Data Container dialog box.
- Select DocType from the Display Name dialog box. The sub-query is displayed under the Training folder.
Step 2: Set the Filter
Set a filter with the following parameters:
- Filter:DocType is equal to CRN
Step-by-Step Solution:
- Select the Sub-Query Report and click the Filter tab.
- Click the Add button.
- Select the DocType field from the Choose a Field Filter dialog box.
- Select the Equal to operator from the Comparison Method dialog box.
- Enter CRN in the Comparison Value dialog box and click OK. The filter is displayed in the Filter tab.
Step 3: Run the sub-query report
Run the report to ensure that the results of the sub-query are correct.
Step-by-Step Solution:
Select the Sub-Query Report and click the Run button. The report is run and the results are displayed in Microsoft Excel.
Ensure the data displayed in the Microsoft Excel workbook is correct, then close the workbook without saving any changes.
Note: This sub-query report will be used in the next exercise.