Setting | Description | Visual Basic |
None | (Default) The row or column breaks are determined by the settings in the Page Setup dialog box (available by clicking Page Setup on the File menu) and the available space on the page. | 0 |
Before Section | Microsoft Access starts printing the current section (the section for which you're setting the property, such as a group header section) in a new row or column. It then prints the next section, such as a detail section, in that same row or column. | 1 |
After Section | Microsoft Access starts printing the current section, such as a group header section, in the current row or column. It starts printing the next section, such as a detail section, in the next row or column. | 2 |
Before & After | Microsoft Access starts printing the current section in a new row or column. It starts printing the following section in the next row or column. | 3 |
Sample setting | Result |
Before Section | The group header is printed at the top of a new column. |
After Section | The detail section is printed at the top of a new column. |
Before & After | The group header is printed in a column by itself, and the detail section is printed at the top of a new column. |
Dim intGetVal As Integer
intGetVal = Me.Section(1).NewRowOrCol
The next example presents two layouts for a report that divides data into four groups (Head1 to Head4). Each group includes three to six records, and each record has field a and field b. The layouts differ only in their settings under Column Layout on the Columns tab of the Page Setup dialog box and the values of their NewRowOrCol properties. Note that the Width box under Column Size on the Columns tab must be set to the actual width of the field. Also, the Before Section setting of the NewRowOrCol property requires a page header section greater than zero for the Down, Then Across option to function correctly.
|
|