Part I: Access Building Blocks
356
To cut an attached label control (in this case, the label attached to the Description text box), follow
these steps:
- Click the Close button on the toolbar to exit Print Preview mode.
- Select the Description label in the Detail section.
- Press Ctrl+X (Cut).
After you’ve cut the label, you may want to place it somewhere else. In this example,
place it in the Page Header section.
Pasting labels into a report section
It’s as easy to cut labels from controls placed in the Detail section and paste them into the page
header as it is to delete the labels and create new ones in the page header. Regardless, you now
paste the label you cut in the previous steps:
- Click anywhere in or on the Page Header section.
- Press Ctrl+V (Paste).
The Product ID label appears in the page header.
- Repeat for the Quantity in Stock labels.
If you accidentally selected the data text-box control and both controls are cut or deleted,
click the Undo toolbar button, or press Ctrl+Z, to undo the action.
Tip
If you want to delete only the text-box control and keep the attached label control, right-click the label control
and select Copy from the shortcut menu. Next, to delete the text-box control and the label control, select the
text-box control and press the Delete key. Finally, right-click anywhere on the form and select Paste from the
shortcut menu to paste only the copied label control to the report.
Moving label and text controls
Before discussing how to move label and text controls, it’s important to review a few differences
between attached and unattached controls. When an attached label is created automatically with a
text control, it’s called a compound control. In a compound control, whenever one control in the set
is moved, the other control moves along with it. This means that, moving either the label or the
text box also moves the related control.
To move both controls in a compound control, select either of the pair of controls with the mouse.
As you move the mouse pointer over either of the objects, the pointer turns into a hand. Click the
controls and drag them to their new location. As you drag, an outline for the compound control
moves with your pointer.