Top Banner
1 Access Lesson 4 Creating and Modifying Forms Microsoft Office 2010 Introductory Pasewark & Pasewark
31

Access lesson 04 Creating and Modifying Forms

Dec 09, 2014

Download

Technology

Aram SE

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Access lesson 04 Creating and Modifying Forms

1

Access Lesson 4Creating and Modifying Forms

Microsoft Office 2010 Introductory

Pasewark & Pasewark

Page 2: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 222

Objectives

Create a form using different form tools. Create a form using the Form Wizard. Navigate records using a form. Use a form to find, replace, update, and

delete data. Create and modify a form in Layout view.

Page 3: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 333

Objectives (continued)

Resize and move controls in a form. Add an unbound control to a form in Design

view. Preview and print a form.

Page 4: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 444

Vocabulary

bound control control control layout Datasheet tool Detail section Field List pane Find

form Form Footer section Form Header section Form tool Form view Form Wizard Layout view

Page 5: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 555

Vocabulary (continued)

Multiple Items tool record source Split Form tool theme unbound control

Page 6: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 666

Creating a Form

A form is a database object that displays data from one or more tables or queries in a format similar in appearance to a paper form.

The tables or queries that provide the data for display in a form are the record source.

Most database experts agree that users should make all database updates using a form.

Page 7: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 777

Creating a Form (continued)

Access includes tools that you can use to create different kinds of forms. The different options for creating forms are located in the Forms group on the Create tab.

The Form tool creates a simple form that includes all the fields in the selected table or query, uses a simple format, and includes a title with the same name as the table or query on which it is based.

Page 8: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 888

Creating a Form (continued)

When fields appear in a form, they appear in controls.

When a tool is used to create a form, it opens in Layout view.

The Split Form tool creates a form using all the fields in the selected table or query and splits the window into two panes. – Top pane contains a form and bottom pane

contains a datasheet with data.

Page 9: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory

Creating a Form (continued)

Form created by the Form tool

9

Page 10: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 101010

Creating a Form (continued)

The Multiple Items tool creates a form listing fields in a datasheet format, in a style similar to a form created by the Form tool.

The Datasheet tool creates a form that looks like a datasheet.

When you need to create a simple form quickly, you can use the Form Wizard, which helps you create a form by letting you select options in dialog boxes.

Page 11: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 111111

Creating a Form (continued)

The Form Wizard provides four form layouts from which to choose:– Columnar– Tabular– Datasheet– Justified

A form's style, also called a theme, formats the form and its controls using a predefined color, font, and design scheme.

Page 12: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 121212

Navigating a Form

When you create a form using the Form Wizard, the form opens in Form view.

When a form is displayed in Form view, you will see each record in the record source, one at a time, in the form.

Form view includes a record navigation bar at the bottom of the Form view window.

Page 13: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 131313

Using a Form to Find and Replace Data

The Find command is available for table or query datasheets, forms, or reports.

The Search option lets you search the entire form and offers two check boxes: – Match Case: Find values with same case – Search Fields As Formatted: Search for formatted

values The Replace tab offers options for finding

text and replacing it with different text.

Page 14: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory

Using a Form to Find and Replace Data (continued)

Find and Replace dialog box

14

Page 15: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 151515

Using a Form to Update Data

Use a form to update the record source, add new records, or delete existing records.

To change a field value, select it and type the new value.

To add a new record, click the New button in the Records group on the Home tab.

When you are finished, press Tab to move to move to a new record or close the form.

Page 16: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 1616

Using a Form to Delete Data

Click the Delete button on the Home tab to delete selected field value.

Click the Delete button arrow, and then Delete Record, to delete the record that is currently displayed in the form.

You can use the Undo button to restore a deleted field value, but deleting a record is permanent.

16

Page 17: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 1717

Creating and Modifying a Form in Layout View

To create a new form from scratch, click the Create tab on the Ribbon, and then click the Blank Form button in the Forms group.

The Field List pane contains the tables in the database and displays the fields they contain. When you double-click a field in the Field List pane, Access adds the field to the form.

17

Page 18: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 1818

Creating and Modifying a Form in Layout View (continued)

As you add fields to a form in Layout view, Access adds them to a control layout.

A control layout is a "container" that groups together the controls in a form so that you can change them as a group.

When you create a form in Layout view, at first it contains one section called the Detail section.

18

Page 19: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 1919

Creating and Modifying a Form in Layout View (continued)

If your form design requires other features, you can add two additional sections. – The Form Header section displays information at

the top of each form, and the Form Footer section displays information at the bottom of each form.

When you add a control to one of these sections, the Form Header and Form Footer sections are added to the form as a pair.

19

Page 20: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 2020

Creating and Modifying a Form in Layout View (continued)

You can add two types of controls to a form.– A bound control is connected to a field in the

record source and is used to display, enter, and update data.

– An unbound control is not connected to a record source and is used to display information, lines, rectangles, and pictures.

20

Page 21: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 2121

Creating and Modifying a Form in Layout View (continued)

When you resize controls in a control layout in Layout view, reducing the width of one control reduces all the widths of all other controls in the control layout at the same time.

When controls are grouped in a control layout, moving one control moves all the selected controls in the group.

21

Page 22: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 2222

Creating and Modifying a Form in Layout View (continued)

22

Controls removed from control layout and moved to new position

Page 23: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 2323

Adding an Unbound Control to a Form in Design View

In Design view, you see the controls that you added to the form on a grid.

The controls do not display data from the record source.

You must be in Design view to add controls such as lines, rectangles, and labels to a form.

23

Page 24: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 2424

Adding an Unbound Control to a Form in Design View (continued)

24

Form in Design view

Page 25: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 2525

Adding an Unbound Control to a Form in Design View (continued)

In Design view you see the Form Header, Detail, and Form Footer sections in the form. You can adjust the size of a section.

You can see the position of objects in Design view as you are moving them, and you can position controls precisely by looking at the horizontal and vertical rulers that appear on the top and left sides of the form.

25

Page 26: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 2626

Previewing and Printing a Form

26

You can preview and print a form. To preview a form, click the File tab to display Backstage view, click Print on the navigation bar, and then click Print Preview.

To print the form with the current record displayed, you must be in Form view and navigate to the desired record.

Page 27: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 2727

Summary

In this lesson, you learned: A form is a database object that displays data from a

record source. You can create a form using a form tool or wizard, or you can create a blank form from scratch.

You can use the record navigation bar in Form view to navigate the records displayed in a form.

27

Page 28: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 2828

Summary (continued)

The Find command is used to locate records in a table or query datasheet, form, or report. When finding data in a form, you need to identify the text to find, the field in which to search (or to search the entire form), the type of search to conduct (whole field, any part of field, or start of field), the desired case of the search text, and the direction to search or to search the entire form. You can also find and replace data using the Replace tab in the Find and Replace dialog box.

28

Page 29: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory 2929

Summary (continued)

You can use a form to update records or to add and delete records. When you make changes to data in a form, the changes are made in the record source on which the form is based.

You can create a blank form and add fields to it by double-clicking the fields in the Field List pane in Layout view. When you add fields to a form, they are added to the form as controls in a control layout. You can resize and change the controls in a control layout as a group. You can also remove controls from a control layout so you can work with them individually.

29

Page 30: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory

Summary (continued)

When you create a form in Layout view, the form has one default section, called the Detail section, that contains the controls that display the data in a form. Two other sections, which are added when the form’s design uses controls that appear in these sections, are the Form Header section and the Form Footer section. The Form Header section usually contains the form’s title, and the Form Footer section might contain labels that describe the form.

30

Page 31: Access lesson 04 Creating and Modifying Forms

Ac

ces

s L

es

son

4

Pasewark & Pasewark Microsoft Office 2010 Introductory

Summary (continued)

You can add two types of controls to a form. A bound control is connected to a field in the record source and is used to display, enter, and update data. An unbound control is not connected to a record source and is used to display information, lines, rectangles, and pictures.

You can preview and print all the records in a form, or you can use the Print dialog box to print only selected records in a form.

31