ACC: Keeping Subreport or Text Box Data Together on a Page
Article ID: 145780
Article Last Modified on 1/19/2007
APPLIES TO
- Microsoft Access 95 Standard Edition
- Microsoft Access 97 Standard Edition
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
Keywords: kbinfo KB145780