Friday, June 23, 2017

Move and resize controls independently

Move and resize controls independently

By default, when you create a new form by using one of the form tools on the Create tab, or when you add fields to a form while it is open in Layout view, Access 2007 puts text boxes and other controls in guides called layouts. A layout, indicated by an orange grid around the controls, helps you align controls horizontally and vertically to give the form a uniform appearance. The following illustration shows a "stacked" layout on a form that is open in Layout view:

Fields contained in a stacked layout on a form

Although layouts can help you quickly create and modify a form, in some cases, you might prefer having the ability to move and size controls independently. This article describes how to remove controls from layouts, after which you can move and resize them without affecting other controls.

For more information about how to use layouts, see the article Automatically align controls on a form.

What do you want to do?

Remove one or more controls from a layout

Split one layout into two layouts

Remove one or more controls from a layout

  1. Right-click the form in the Navigation Pane, and then click Design View.

  2. Select the control that you want to remove from the layout. To select multiple controls, hold down the SHIFT key and then click the controls you want to remove. To select all the controls in the layout, click the layout selector box at the upper-left corner of the layout.

  3. Do one of the following:

    • On the Arrange tab, in the Control Layout group, click Remove Button image .

    • Right-click one of the selected controls, point to Layout, and then click Remove Button image .

      Access removes the selected controls from the layout.

Top of Page

Split one layout into two layouts

If you just want to separate one group of controls from another, but still want to retain the layouts, you can split one layout into two layouts by doing the following:

  1. Right-click the form in the Navigation Pane, and then click Design View.

  2. Hold down the SHIFT key and then click the controls that you want to move to the new control layout.

  3. Do one of the following:

    • On the Arrange tab, in the Control Layout group, click the layout type that you want for the new layout (Tabular Button image or Stacked Button image ).

    • Right-click the selected controls, point to Layout, and then click the layout type that you want for the new layout.

Access creates a new control layout and adds the selected controls to it.

Move layouts

After splitting one layout into two, the two layouts might overlap. To move a layout:

  1. Select any control in the layout.

  2. Press and hold the CTRL key.

  3. Drag the layout by using the layout selector at the upper-left corner of the layout.

    A layout selector on a form in Design view

Tip: Holding down the CTRL key as you drag a layout or control prevents the layout or control from being inserted into other layouts as you drag it over them.

Top of Page

No comments:

Post a Comment