ACC: Keeping Subreport or Text Box Data Together on a Page (145780)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q145780
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
Subreports and text box controls do not have a KeepTogether property to
prevent the controls' data from printing across two or more pages.
However, you can simulate the KeepTogether property behavior by creating
"artificial" group sections and placing the subreport and text box
controls in these sections. Then, you can set the group's KeepTogether
property to Yes, which causes Microsoft Access to test the layout of the
controls before printing them and to keep the text together on one page.
NOTE: This article explains a technique demonstrated in the sample
files, RptSampl.exe (for Microsoft Access for Windows 95 version 7.0)
and RptSmp97.exe (for Microsoft Access 97). For information about how
to obtain these sample files, please see the following articles in the
Microsoft Knowledge Base:
145777 ACC95: Microsoft Access Sample Reports Available in Download Center
175072 ACC97: Microsoft Access 97 Sample Reports Available in Download Center
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kbinfo KB145780 |
---|
|