Characteristics of Sections of a Report
|
|
The Background Color of a Section
|
|
By default, each section of a report appears white so
its background would print as transparently as possible on a white piece of
paper. If you want, you can change the background color of any section. To
change the color of a section:
- Right-click the section or its bar, position the mouse on Fill/Back
Color, and select a color from the window
- Click a section or its bar:
- On the Ribbon, click Home. In the Text Formatting section, click
the arrow of the Background Color button and click the desired color
from the window or click More Colors to compose a color
- On the Ribbon, click Format. In the Font section, click the
arrow of the Background Color button and click a color or create one
- Double-click the section or its bar to access its Property Sheet.
Then, in the Format or the All tab of the Property Sheet, click Back
Color and select the desired color
If you specify the background color other than white for
a section, you should set the same background color for the controls in that
section.
Practical
Learning: Setting the Background Color of a Section
|
|
- Re-open the
Red Oak High
School database
The Alternate Row Color of a Section
|
|
If you create repeating colors on a report, you can make
the other occurrence of a section show a different color. This means that
you can make every odd occurrence show a certain background color and every
even occurrence to show a certain background color. This is referred to as
alternating the colors. Not all sections can use an alternate color. For
example, the Page Header and the Page Footer sections don't use an alternate
color. The Detail section and custom sections (we will learn how to create
them) do.
To apply the color alternating feature, first select a
section and set its background color using the Background Color button.
Then:
- Right-click the section or its bar, position the mouse on Alternate
Fill/Back Color and click the desired color or click More Colors to
create a cusmtom color
- Click the section. On the Ribbon, click Format. In the Background
section, click the arrow of the Alternate Row Color button
and click a color or click More Colors to create a custom color
- Double-click the section. In the Format or the All tab of the
Property Sheet, click Alternate Color, then click the arrow of its combo
box and select the desired color or click the ellipsis button to compose
a color
Here is an example of the type of result you could get:
Practical
Learning: Setting the Alternate Row Color of a Section
|
|
- To create a new report, on the Ribbon, click Create and, in the
Report section, click Report Wizard
- In the Tables/Queries combo box, the Students table should be
selected.
In the Available Fields list, double-click StudentNumber,
FirstName, LastName, and Gender
- Click Next
- Click Next
- Click Next
- Click Next
- Make sure the Tabular radio button is selected and click Next
- Change the title to Students by Gender
- Click Finish
- Right-click the title bar of the report and click Design View
- On the report, click Detail
- On the Ribbon, click Format
- In the Font section, click the arrow of the Alternate row Color
button and select Tan, Background 2 (Theme Colors: 3rd column - 1st row)
- Right-click the title bar of the report and click Print Preview

- Save and close the report
- Open the College Park Auto Repair1 database from the previous lesson
- In the Navigation Pane, under Reports, right-click RepairOrders and
click Design View
- On the report, click the Detail bar
- On the Ribbon, click Format
- In the Background section, click the arrow of the Alternate Row
Color button and click White, Background 1 (Theme colors: 1st column -
1st row)
- Close the report
- When asked whether you want to save, click Yes
- Re-open the Red Oak High School database
Keeping a Section on its Own Page(s)
|
|
Consider the following design of a report:

If you create a report and design it with the default
settings, the first record displays. If its values do not cover the whole
page, the values of the next record start displaying on the same page but,
if the next record cannot completely fit on that first page, it does not
print on that page. Instead, it prints on the next page. This means that
more than one record can print on the same page if and only if all those
records can fit each completely on that page.
In some cases, such as if you have a report that
displays a type of magazine, brochure, or catalog, you may want the first
record to print on the first page, when the first record finishes, print the
next record on the same page. If both records have printed on the same page
and there is still enough room, the next record could start. Once the first
page is full, the values left from the previous record continue on the next
page. As you may suspect, these two scenarios depend on the types of values
that the report is asked to print and of course this highly depends on your
intention.
The ability to keep each record on its own page is
controlled by the Keep Together property of a section. To access it,
display the report in Design View and double-click either the section or its
bar. Keep Together is a Boolean property with a Yes and No
options:
- If you set Keep Together to Yes, which is the default
value, the first record displays or prints its values on the first page:
- If there is still room on that first page, Microsoft Access
calculates how much room the next record needs. If the next record
can completely fit on the remaining area of the first page, then
that next record is put on that first page:
- If the next record is too long to fit on that first page, it
would not print on it but would be sent to the next page and the
remaining area of the first page would be left empty:
This evaluation is made for each subsequent record.
- If the first record itself is too long to fit on the first page,
it would print on the first page and would continue printing on the
next page. Then, if the next record can fit on that second page
(which is usually unlikely), it would be put on that page
- If you set Keep Together to No, the first record
displays on the first page, followed by the next record. If the record
gets to the end of the page, it continues on the next page. This means
that the records would simply continuously print one after the other:
A Report With Multiple Columns
|
|
All of the reports we have created so far display in one
vertical list. Such a list is referred to as a column. If a report is made
of a single list and the items of the list are not too wide, you can display
the list in various columns.
To create the columns on a report, first make the list
wide or narrow enough so it can fit more than once on the piece of paper.
Then, display the Page Setup dialog box. In the Page Setup dialog box, set
the Number of Columns text box to a value of your choice.
To display the items of the columns, you have two
options. This option is set in the Column Layout section:
- You can put the first item in the first column, the second item in
the second column, the third item in the third column, and so on. When
the list of columns is met, the items continue on the first column,
followed by the subsequent columns. If you want this layout, select the
Across, then Down radio button
- You can put the first item in the first column, followed by the
second item in the first column, followed by the third item in the first
column, and so on. When the first column is filled, the list continues
on the second column, then the subsequent columns. If you want to use
this layout, select the Down, then Across radio button.
Practical
Learning: Creating Multiple Columns on a Report
|
|
- In the Navigation Pane, under Reports, double-click Students List
- After viewing the report, right-click its title bar and click Design
View

- On the Ribbon, click File
- Click Print
- Click Print
- On the Print dialog box, click Setup...
- In the Page Setup dialog box, click the Columns tab
- In the Grid Settings section, set the Number of Columns to 2
- In the Column Layout section, click Down, Then Accross

- On the Page Setup dialog box, click OK
- On the Print dialog box, click Cancel
- To preview the report, on the Ribbon, click the arrow under the View
button and click Print Preview

- Close the report
- When asked whether you want to save, click Yes
- Open the Yugo National Bank database
- Create a new report for the TransactionTypes table and make
the detail section alternate colors between White and Light Blue 1
- Open the Watts A Loan database
- Create a new report for the Types of Loans table and make the
detail sections alternate colors between White and Brown 2
- Open the World Statistics1 database
- Create a report catalogue for the Countries table
- Open the US Senate1 database
- Create a report catalogue of the senators, one senator per page
|
No comments:
Post a Comment