28
Microsoft Office 2007- Illustrated Microsoft Office 2007- Illustrated Introductory, Windows Vista Edition Introductory, Windows Vista Edition Using Forms Using Forms

Microsoft Office 2007- Illustrated Introductory, Windows Vista Edition Using Forms

  • View
    224

  • Download
    1

Embed Size (px)

Citation preview

Microsoft Office 2007- Illustrated Introductory, Microsoft Office 2007- Illustrated Introductory, Windows Vista EditionWindows Vista Edition

Using FormsUsing Forms

ObjectivesObjectives

• Create a formCreate a form

• Use Form Layout ViewUse Form Layout View

• Use Form Design ViewUse Form Design View

• Add fields to a formAdd fields to a form

(continued)(continued)

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Objectives Objectives

• Modify form controlsModify form controls

• Create calculationsCreate calculations

• Modify tab orderModify tab order

• Insert an imageInsert an image

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Creating a FormCreating a Form

• A form enables you to arrange fields A form enables you to arrange fields of a record in any layout you wishof a record in any layout you wish

• You can enter, edit, delete and You can enter, edit, delete and navigate data in forms just like query navigate data in forms just like query and table datasheetsand table datasheets

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Form WizardForm Wizard

• One way to create a form is by using One way to create a form is by using the Form Wizardthe Form Wizard

• The Wizard asks you questions to The Wizard asks you questions to determine the information you wantdetermine the information you want

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Form Wizard: Selected FieldsForm Wizard: Selected Fields

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Bound and Unbound ControlsBound and Unbound Controls

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Every item on a form is a Every item on a form is a controlcontrol, , such as text boxes and labelssuch as text boxes and labels

• Bound controls display dataBound controls display data

• Unbound controls do not display dataUnbound controls do not display data

Form ControlsForm Controls

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Using Form Layout ViewUsing Form Layout View

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Allows some design changes to the Allows some design changes to the formform

• A new feature of Access 2007A new feature of Access 2007

• You can add / delete fieldsYou can add / delete fields

• You can change formatting such as You can change formatting such as fonts and colorsfonts and colors

Using Form Layout ViewUsing Form Layout View

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Using Form Design ViewUsing Form Design View

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Another way to create a form is by Another way to create a form is by using Form Design Viewusing Form Design View

• Design View displays no dataDesign View displays no data

• Provides sole access to the detailed Provides sole access to the detailed structure of the form, such as Form structure of the form, such as Form Headers and FootersHeaders and Footers

Mouse Actions in FormMouse Actions in FormDesign ViewDesign View

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Adding / Deleting Fields on a Adding / Deleting Fields on a FormForm

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Can be done in Layout View or Can be done in Layout View or Design View using Field List windowDesign View using Field List window

• To To addadd a field: drag it from the Field a field: drag it from the Field List to the location you wantList to the location you want

• When you When you addadd a new field, 2 controls a new field, 2 controls are created: label and text boxare created: label and text box

• To To deletedelete a field: click to select the a field: click to select the field, then press [Delete]field, then press [Delete]

Form Layout View:Form Layout View:Adding ControlsAdding Controls

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Modifying Form ControlsModifying Form Controls

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Many common properties can be Many common properties can be modified in Form View or Layout modified in Form View or Layout ViewView

• Some properties (such as Control Some properties (such as Control Source) can only be viewed and Source) can only be viewed and changed on the Property Sheetchanged on the Property Sheet

Modifying Form ControlsModifying Form Controls

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Property Sheet: a list of all properties Property Sheet: a list of all properties (characteristics) for a selected control(characteristics) for a selected control

• Control Source property determines Control Source property determines field field bindingbinding (the field to which a text (the field to which a text box is connected)box is connected)

Property SheetProperty Sheet

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Property Sheet: Close-Up ViewProperty Sheet: Close-Up View

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Creating CalculationsCreating Calculations

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Calculations are used to add items Calculations are used to add items such as subtotals and counts to a such as subtotals and counts to a formform

• Expressions are needed to create a Expressions are needed to create a calculationcalculation

Creating CalculationsCreating Calculations

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Expression: an equal sign and a Expression: an equal sign and a combination of symbols combination of symbols

• Square brackets must surround a Square brackets must surround a field name in an expressionfield name in an expression

• Field name must be typed exactly as Field name must be typed exactly as it was in Table Design View (except it was in Table Design View (except for capitalization)for capitalization)

Creating ExpressionsCreating Expressionsand Text Boxesand Text Boxes

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Modifying Tab OrderModifying Tab Order

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Tab StopTab Stop: determines whether the : determines whether the field accepts the focus and therefore field accepts the focus and therefore determines where the focus moves as determines where the focus moves as you press [Tab]you press [Tab]

• Tab OrderTab Order: the order the focus moves : the order the focus moves as you press [Tab]as you press [Tab]

• All text boxes and combo boxes have All text boxes and combo boxes have a tab stop and are included in the tab a tab stop and are included in the tab orderorder

Modifying Tab PropertiesModifying Tab Properties

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Inserting an ImageInserting an Image

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Examples are pictures, logos, clip artExamples are pictures, logos, clip art

• The form section you place it in The form section you place it in determines where it will appear on determines where it will appear on the formthe form

• For example, determine whether you For example, determine whether you want the image at the top of the form want the image at the top of the form or next to each recordor next to each record

Form Sections &Form Sections &Multimedia ControlsMultimedia Controls

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

Inserting an Image in theInserting an Image in theForm Header SectionForm Header Section

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

SummarySummary

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Build forms to enter and edit dataBuild forms to enter and edit data

• Use Form Layout View to make Use Form Layout View to make design changesdesign changes

• Use Form Design View to build and Use Form Design View to build and modify formsmodify forms

• Every item on a form is called a Every item on a form is called a “control”“control”

(continued)(continued)

Summary Summary

Microsoft Office 2007-Illustrated Introductory, Windows Vista Edition

• Bound controls display dataBound controls display data

• Unbound controls clarify informationUnbound controls clarify information

• Calculations require an expression Calculations require an expression that includes the = sign and symbolsthat includes the = sign and symbols

• Tab stops and tab orders simplify Tab stops and tab orders simplify data entry and navigating formsdata entry and navigating forms

• Images can be added for a more Images can be added for a more professional-looking formprofessional-looking form