Access offers an extraordinary number of formatting properties that you can use to customize the appearance of your forms and the control objects they contain. You also can apply most of the property settings described in the following sections to subforms. Default Values for FormsYou can change some of the default values used in the creation of all forms by choosing Tools, Options and clicking the Forms/Reports tab (see Figure 14.11). You can create a form to use as a template and replace the standard (Normal) template, and you can determine how objects are displayed when chosen. The effects of these options are described in the sections that follow. The options that you or other Access users choose in the Options dialog are saved for each user ID in the MSysOptions table of the current System.mdw workgroup system file. Figure 14.11. You can change default values in the Forms/Reports page of the Options dialog.
You can change the default values for the current form, section, or controls by choosing the object and then changing the default values displayed in the Properties window for that object. You can also use the AutoFormat feature to quickly apply a predefined format to all controls in the form. The next section describes using AutoFormat to change a form's appearance, and subsequent sections describe ways to change the format of text or controls manually on a form. Tip
Using AutoFormatAutoFormat lets you apply a predefined format to an entire form with only a few mouse clicks. Access 2003 comes with several predefined formats, and you also can create your own formats for use with AutoFormat. The AutoFormat dialog is similar to the third Form Wizard (form layout) dialog described earlier in the chapter. Applying an AutoFormatTo apply a format to a form with AutoFormat, follow these steps:
The AutoFormat dialog, when expanded by clicking the Options button, lets you omit the application of font, color, or border style information to your form when you apply the AutoFormat. Deselect the check box for the elements of the AutoFormat that you don't want AutoFormat to apply to your form. Creating and Customizing AutoFormatsThe predefined AutoFormat styles might not suit your tastes, or you might want to create AutoFormat styles specific to your company or application. Applying formatting to a form through an AutoFormat style is by far the easiest way to create standardized forms for your database application especially because the Form Wizard uses the same format style list as the AutoFormat feature. In other words, any AutoFormat you create also becomes available in the Form Wizard dialog. To create a new AutoFormat or customize an existing one, follow these steps:
Deleting AutoFormatsIf you've created your own AutoFormats, you might want to delete an AutoFormat that you no longer use. To delete an AutoFormat, follow these steps:
Changing an Object's ColorsYou select object colors through the buttons on the Formatting toolbar, as well as through property settings that are accessible through the Properties window of the form and individual objects on the form. The following sections describe how to use the Formatting toolbar controls and the Property dialog to change background and foreground colors of form sections and control objects, as well as border properties of control objects. Background ColorsThe background color (Back Color property) of a form section (Header, Detail, or Footer) applies to all areas of that section except areas occupied by control objects that don't have a transparent background. The default background color of all sections of forms created by the Form Wizard depends on the specific form style you choose when you create the form; the Standard format scheme used to create the frmHRActions form, for example, is the Windows system color for 3D Objects (the default is light gray). The 40 default color choices on the palette displayed by the Fill/Back Color toolbar button are standard colors of Windows XP/2000 in 256+ color mode. If you're creating a form that you intend to print, a dark or deeply textured background will not only be distracting but will also consume substantial amounts of printer toner. Data-entry operators often prefer a light gray background rather than a colored, or textured background. Colored and textured backgrounds tend to distract users. If you've selected a picture as the background for a form or used an AutoFormat style that includes a background picture, such as the International style of Northwind.mdb's Customers form then any changes you make in the background color of the form are hidden by the overlying picture. To change the background color of a section of a form, follow these steps:
Because the background color of each form section is independent, you must repeat the process if you want to change the color for other sections of your form. The Transparent button of the Fill/Back Color palette is disabled when a form section is chosen because a transparent background color isn't applicable to forms. You choose the background color for a control object, such as a label, just as you do for a form. In most cases, the chosen background color of labels is the same as that of the form, so click the Transparent button to allow the background color to appear. The default value of the Back Color property of text boxes is white so that text boxes (and the data they contain) contrast with the form's background color. Changing the Background BitmapYou can use a bitmap picture as the background for a form. Unlike background colors, of which you can have several, you select a single bitmap picture for the entire form. Access 2003 comes with a few bitmap pictures that it uses in the AutoFormat formats International, for example, uses the Globe.wmf graphics file (stored in the Program Files\Microsoft Office\Office11\Bitmaps\Styles folder) as the background for the form. You can use any .bmp, .dib, .emf, .gif, .ico, .jpg, .pcx, .png, or .wmf graphics file as a background for a form. Access 2000 added the capability to use compressed .gif, .jpg, .pcx, and .png files. Tip Forms with bitmap graphics as a background can look dramatic and, therefore, are best suited for decision-support forms intended for management personnel. (Management types are known to prefer form over substance.) For accurate, high-speed data entry, keep your transaction-processing forms visually simple so that users can easily distinguish data fields on the form and easily read text labels. You set or remove a form's background bitmap through the Properties window of the form; you can also specify several viewing and formatting properties for the background picture. Follow these steps to set the background picture properties of a form:
The following list summarizes form properties related to the background picture, available choices for each property, and the effects of each choice:
Now that you know how to adjust the background picture and colors of a form, the next section describes how to adjust the foreground colors and border properties of the form and objects on the form. Foreground Color, Border Color, and Border StyleYou might set the foreground color, border color, and border width through buttons on the Formatting toolbar or directly in the Properties window for a selected control. To set a border style (solid style or a variety of dashed-line styles), you must set the property directly in the Properties window. Foreground color (the Fore Color property) is applicable only to control objects. (The Font/Fore Color button on the toolbar is disabled when you select a form section.) Foreground color specifies the color for the text in labels and text boxes. The default value of the Fore Color property is black. You choose border colors for control objects that have borders by using the Line/Border Color toolbar button. The Special Effects button of the Formatting toolbar lets you simulate special effects for control objects, such as a raised or sunken appearance. The Line/Border Width button allows you to control the width of the border of controls. The Formatting toolbar buttons were listed earlier in this chapter in Table 14.2. To set a control's foreground color, border width, or border color by using the Formatting toolbar buttons, first click the control whose properties you want to change and then click the arrow to the right of the toolbar button for the property you want to change. Click the color or line width you want for the control. To set a control's foreground color, border width, border color, or border style in the Properties window, first select the control whose properties you want to change by clicking it. If necessary, open the Properties window by clicking the Properties button on the toolbar. Click the Format tab in the Properties window and then scroll to the text box for the property you want to change. Most of the border properties are selected from drop-down lists; color properties require you to type a number that represents the desired color in Windows 98/Me or Windows 2000/NT color notation. (Windows color notation is too complex to explain here; the easiest way to enter color values is with the toolbar buttons or by using the color Builder described in the following section, "Creating Custom Colors with the Color Builder.") Creating Custom Colors with the Color BuilderIf you aren't satisfied with one of the predefined colors for your form sections or control objects, you can specify your own custom colors by following these steps:
In 256-color VGA mode, any colors you choose or create, other than the standard Windows 256-color palette, are simulated by a dithering process. Dithering alternates pixels of differing colors to create the usually imperfect illusion of a solid color. |