Changing the Arrangement of a Form


Both automatically-generated forms and forms created by a wizard are functional, not fancy. However, it’s fairly easy to customize the layout to suit your needs and preferences. You can add and delete labels, move both labels and text controls around the form, add logos and other graphics, and otherwise improve the layout of the form to make it attractive and easy to use.

While you work with a form’s layout, you should pay attention to the shape of the pointer, which changes to indicate the manner in which you can change the selected item. Because a text box and its label sometimes act as a unit, you have to be aware of the pointer’s shape before making any change. The shape of the pointer indicates the action to be taken:

  • Four-headed arrow. Drag to move both controls together, or independently if the pointer is over a large square in the upper-left corner of the control.image from book

  • Pointing finger. Drag to move just the control.image from book

  • Vertical arrow. Drag the top or bottom border to change the height.image from book

  • Horizontal arrow. Drag the right or left border to change the width.image from book

  • Diagonal arrow. Drag the corner to change both the height and width.image from book

In this exercise, you will rearrange the label and text box controls in a form.

Use the 03_RefineLayout database. This practice file is located in the Chapter10 subfolder under SBS_Office2007.

Open the 03_RefineLayout database.

1. In the Navigation Pane, under Forms, right-click Customers, and then click Design View.

The form is divided into three sections: Form Header, Detail, and Form Footer. We are interested in only the Detail section right now.

image from book

Troubleshooting 

If you can’t see the Form Footer you may have to use the scroll bar to scroll down in the form until the footer appears. You can also right-click an inactive section of the Ribbon and the click Minimize The Ribbon to gain more screen space for your form. Click the minimized Ribbon and click Minimize The Ribbon again to restore the Ribbon.

2. Point to the right edge of the Detail grid, and when the pointer changes to a doubleheaded arrow, drag the edge of the background to the right until you can see about seven full grid sections.

3. Click the LastName text box, and then slowly move the pointer around its border, from handle to handle, noticing how the pointer changes shape.

image from book

If a label or text box can be moved independently, then it will have a larger square in its upper-left corner.

4. Move the pointer over the LastName text box and when it changes to a four-headed arrow, drag it up and to the right of the FirstName text box.

Tip 

If you can’t move the label independently of the text box, the form is probably in Stacked layout. Drag through all the controls to select them, and then click the Remove button in the Control Layout group on the Arrange tab.

5. Resize each control and then move it to the location shown in the following graphic.

image from book

Tip 

To fine-tune the position of a control, click it and then move the control by pressing the Up Arrow, Down Arrow, Left Arrow, or Right Arrow key. To move the control lesser distances, hold down the Ctrl key while pressing the arrow key. To fine-tune the size of a control, hold down the Shift key while pressing the arrow key.

6. On the Arrange contextual tab, in the AutoFormat group, click the AutoFormat button.image from book

The AutoFormat gallery opens.

image from book

7. At the bottom of the AutoFormat gallery, click AutoFormat Wizard.

The AutoFormat dialog box opens.

image from book

8. In the AutoFormat dialog box, click the Customize button.

The Customize AutoFormat dialog box opens.

image from book

9. In the Customize AutoFormat dialog box, select the Create a new AutoFormat based on the Form ‘Customers’ option, and then click OK.

Tip 

Form controls inherit whatever theme is set in the operating system. To change the theme, open Control Panel, click Appearance And Personalization, and then under Personalization, click Change The Theme. In the Theme Settings dialog box, select the theme you want, and then click OK.

The New Style Name dialog box opens.

image from book

10. In the Style Name box, type Customers, and then click OK.

In the AutoFormat dialog box, the new style appears in the Form AutoFormats list. This style will now be available in any database you open on this computer.

11. In the AutoFormat dialog box, click OK.

Tip 

Access saves data automatically as you enter it, but you must manually save layout changes to any object.

Close the Customers form, saving your changes, and then close the 03_RefineLayout database.



2007 Microsoft Office System Step by Step
2007 MicrosoftВ® Office System Step by Step
ISBN: 0735622787
EAN: 2147483647
Year: 2004
Pages: 231

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net