This is just clarification of what the previous people said:
NOTE: In this example T9_PK is the primary key for Table 9 (i.e. the employee table)
The purpose here is to create a subreport that is the 'Time Card' for each employee, and then create a Main report that has all the employee Time Cards, each on a new page.
- Create a report that uses a parameter (e.g. Parm: T9_PK) {This will be the Sub-report e.g. TimeCard.rdl}
- Drag drop 'List' control onto design surface of a new report {This will be the Main Report}
- Add a dataset to the Main Report that has a field that will end up being the Parameter of the 'Sub-report.
Drag the field (e.g. T9_PK) from a dataset {previously added to report}into the List 'Control.
Drag drop a Subreport control into the Cell of the List Control, on the Main Report (e.g. AllTimeCards.rdl).
Set the subreport to the previously created report (e.g. TimeCard.rdl, with a single Parm: T9_FK)
Set the Subreport properties => Parameters:
Name: T9_PK
Value: [T9_PK]
NOTE: the Parameter for this sub-report is the one that is coming from the dataset for the Main report
- Right click on '(Details)' in the 'Row Groups' Pane (below Design Surface) => New Group => T9_PK
- As an additional option set the page breaks:
Right click on '(T9_PK)' in the 'Row Groups' Pane (below Design Surface) => Group Properties {window}
=> Page Breaks {left pane} =>
Page Break Options:
[x] Between each instance of a group