Working with the OrderDate Header and Footer Sections
In our report, we will use the group header sections to
present the order date and customer information that is contained within the Detail
section. The Detail section of this report is "home" to the
customer order information; the OrderDate header and footer sections
will serve as "containers" from which we can present the OrderDate
groups to which each set of details belongs.
Re-enter the Design
View for the Customer Orders Report, if necessary.
from the Field List.
Drag the OrderDate
compound control to the OrderDate header section, dropping it into the
upper left corner of the section.
compound control to be flush to the top of the OrderDate header section,
and at approximately the 1/4-inch point on the horizontal ruler.
Click the text
control (the right control in the pair) for OrderDate, to select it.
Drag the text
control to align to the right of the OrderDate label, at approximately
the 7/8-inch point on the horizontal ruler, flush to the top of the OrderDate
the OrderDate text control is still selected, right-mouse click.
from the context menu that appears, as shown in Illustration 20.
Illustration 20: Context
The Properties sheet for the OrderDate text
Format tab of the Properties sheet, if necessary.
in the Text Align setting of the Format tab.
The Properties sheet - Format tab for the OrderDate
text control appears as depicted in Illustration 21.
Illustration 21: Properties
sheet - Format tab for the OrderDate Text Control
Close the Properties
Select the OrderDate
compound control by clicking the label control, holding down the SHIFT
key, and then clicking the text control.
The compound control appears as selected.
Click the Bold
button (Illustration 22) in the main toolbar.
Illustration 22: The
pointer to the bottom of the OrderDate header section, placing it
between the OrderDate header section and the Detail
Hold down the
left button on the mouse, as soon as the "double-arrow" image
Drag the Detail
section border up, until a tight fit is achieved for the controls we have
button to fix the border in place.
The relevant portion of the Design View should appear
similar to Illustration 23.
Illustration 23: The
The relatively simple setup for the header is complete. Next, we can consider the OrderDate
footer section. The fact that it should be essentially the same as the header
setup will allow us a welcome shortcut, as we shall see in the steps that
With the OrderDate
compound control selected, press the CTRL-C key combination.
copies the compound control into the notepad area.
the OrderDate footer section.
Press the CTRL-V.
pastes the compound control, together with the adjustments and formatting that
we have already performed in the OrderDate header, into the footer. We
are thus spared at least the tasks of resizing, formatting and re-setting the
alignment property for the OrderDate compound control. We have only to
arrange it as we need it in the footer section, as well as to handle any
differences in its use.