Applies To Form, Form section, Report, Report section.
Description
You can use the KeepTogether property for a section to print a form or report section all on one page. For example, you might have a group of related information that you don't want printed across two pages.
Note The KeepTogether property applies only to form and report sections (except page headers and page footers).Setting
The KeepTogether property for a section uses the following settings.
Setting | Description | Visual Basic |
Yes | Microsoft Access starts printing the section at the top of the next page if it can't print the entire section on the current page. | True (–1) |
No | (Default) Microsoft Access prints as much of the section as possible on the current page and prints the rest on the next page. | False (0) |
See Also ForceNewPage property, Format event, KeepTogether property — groups.
Example The following example returns the KeepTogether property setting for a report's detail section and assigns the value to the intGetVal variable.Dim intGetVal As Integer
intGetVal = Me.Section(acDetail).KeepTogether