Using Forms
Objectives Use the Form WizardUse the Form Wizard Create a split formCreate a split form Use Form Layout ViewUse Form Layout View Add fields to a formAdd fields to a form(continued) Microsoft Office 2013-Illustrated2
Objectives (continued) Modify form controlsModify form controls Create calculationsCreate calculations Modify tab orderModify tab order Insert an imageInsert an image Microsoft Office 2013-Illustrated3
Use the Form Wizard A form is an Access database object that allows you to arrange the fields of a record in any layout so you can enter, edit, and delete recordsA form is an Access database object that allows you to arrange the fields of a record in any layout so you can enter, edit, and delete records One way to create a form is by using the Form WizardOne way to create a form is by using the Form Wizard The Wizard asks you questions to determine the information you wantThe Wizard asks you questions to determine the information you want Microsoft Office 2013-Illustrated4
Form Views Microsoft Office 2013-Illustrated5
Create a Split Form The benefit of a split form is that the upper pane allows you to display the fields of one record in any arrangement, and the lower pane maintains a datasheet view of the first few records, which you can navigate very quicklyThe benefit of a split form is that the upper pane allows you to display the fields of one record in any arrangement, and the lower pane maintains a datasheet view of the first few records, which you can navigate very quickly Microsoft Office 2013-Illustrated6
Form Creation Tools Microsoft Office 2013-Illustrated7
Example of a table in a split form Microsoft Office 2013-Illustrated8
Use Form Layout View Layout View lets you make some design changes to a form while you are browsing the data:Layout View lets you make some design changes to a form while you are browsing the data: Move and resize controlsMove and resize controls Add or delete a field on the formAdd or delete a field on the form Filter and sort dataFilter and sort data Change formatting characteristics, such as fonts and colorsChange formatting characteristics, such as fonts and colors Microsoft Office 2013-Illustrated9
Use Form Layout View Microsoft Office 2013-Illustrated10
Mouse Pointer Shapes in Form Layout View Microsoft Office 2013-Illustrated11
Add Fields to a Form Can be done in Layout View or Design View using Field List windowCan be done in Layout View or Design View using Field List window To add a field: drag it from the Field List to the location you wantTo add a field: drag it from the Field List to the location you want When you add a new field, 2 controls are created: label and text boxWhen you add a new field, 2 controls are created: label and text box To delete a field: click to select the field, then press [Delete]To delete a field: click to select the field, then press [Delete] Microsoft Office 2013-Illustrated12
Field List in Form Layout View Microsoft Office 2013-Illustrated13
Bound vs. Unbound Controls Every item on a form is a control, such as text boxes and labelsEvery item on a form is a control, such as text boxes and labels Bound controls display dataBound controls display data Unbound controls do not display dataUnbound controls do not display data Microsoft Office 2013-Illustrated14
Modify Form Controls When you modify controls, you change their properties (characteristics)When you modify controls, you change their properties (characteristics) All of the control characteristics you can modify are stored in the control’s Property SheetAll of the control characteristics you can modify are stored in the control’s Property Sheet Microsoft Office 2013-Illustrated15
Using the Property Sheet Microsoft Office 2013-Illustrated16
Common Form Controls Microsoft Office 2013-Illustrated17
Create Calculations To create a calculation in a text box, you enter an expression instead of a field name in the Control Source propertyTo create a calculation in a text box, you enter an expression instead of a field name in the Control Source property An expression is a combination of field names, operators (such as +, –, /, and *), and functions (such as Sum, Count, or Avg) that results in a single valueAn expression is a combination of field names, operators (such as +, –, /, and *), and functions (such as Sum, Count, or Avg) that results in a single value Microsoft Office 2013-Illustrated18
Creating Calculations Expression: an equal sign and a combination of symbolsExpression: an equal sign and a combination of symbols Square brackets must surround a field name in an expressionSquare brackets must surround a field name in an expression Field name must be typed exactly as it was in Table Design View (except for capitalization)Field name must be typed exactly as it was in Table Design View (except for capitalization) Microsoft Office 2013-Illustrated19
Adding a Text Box to Calculate a Value Microsoft Office 2013-Illustrated20
Sample Expressions Microsoft Office 2013-Illustrated21
Modify Tab Order Tab Order: the order the focus moves as you press [Tab]Tab Order: the order the focus moves as you press [Tab] Tab Stop: determines whether the field accepts the focus and therefore determines where the focus moves as you press [Tab]Tab Stop: determines whether the field accepts the focus and therefore determines where the focus moves as you press [Tab] All text boxes and combo boxes have a tab stop and are included in the tab orderAll text boxes and combo boxes have a tab stop and are included in the tab order Microsoft Office 2013-Illustrated22
Tab Order Dialog Box Microsoft Office 2013-Illustrated23
Insert an Image Examples are pictures, logos, clip artExamples are pictures, logos, clip art The form section you place it in determines where it will appear on the formThe form section you place it in determines where it will appear on the form For example, determine whether you want the image at the top of the form or next to each recordFor example, determine whether you want the image at the top of the form or next to each record Microsoft Office 2013-Illustrated24
Form Sections Microsoft Office 2013-Illustrated25
Adding an Image to the Form Header Section Microsoft Office 2013-Illustrated26
Summary Using the Form WizardUsing the Form Wizard Creating a split formCreating a split form Using Form Layout ViewUsing Form Layout View Adding fields to a formAdding fields to a form Modifying form controlsModifying form controls Creating calculationsCreating calculations Modifying tab orderModifying tab order Inserting an imageInserting an image Microsoft Office 2013-Illustrated27