How create a data grouping that breaks after a certain number of records in Visual FoxPro (109152)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q109152 SUMMARY
In the Visual FoxPro Report Designer, you can create a data grouping that will break
after a certain number of records.
For example, the following procedure will create a data grouping that
breaks after every fifth record.
- Create a quick report based on theCustomer table.
- From the Report menu, choose Variables.
- Choose Add to add a variable.
- For the variable name, type cntr.
- For the value to store, type Customer.region.
(In VFP 3.0, type Customer.state.)
- Select the Count radio button in the Calculate box and choose OK
twice to return to the report.
- From the Report menu, choose Data Grouping.
- Choose Add to add a Data Grouping.
- Enter the following expression to group on:
- Select OK twice to return to the report. You can now place fields and
text in the group header and footer, which will print every fifth
record.
Modification Type: | Minor | Last Reviewed: | 2/2/2005 |
---|
Keywords: | KB109152 |
---|
|