access chapter 01

46
Microsoft Access 2010 Chapter 1 Databases and Database Objects: An Introduction

Upload: jgardne4

Post on 28-Nov-2014

1.102 views

Category:

Education


1 download

DESCRIPTION

Access Chapter 01 from textbook Microsoft Office 2010 by Shelly and Vermaat.

TRANSCRIPT

Page 1: Access Chapter 01

MicrosoftAccess 2010

Chapter 1

Databases and Database Objects: An Introduction

Page 2: Access Chapter 01

Databases and Database Objects: An Introduction 2

• Design a database to satisfy a collection of requirements

• Describe the features of the Access window• Create a database• Create tables in Datasheet and Design views• Add records to a table

Objectives

Page 3: Access Chapter 01

Databases and Database Objects: An Introduction 3

• Close a database• Open a database• Print the contents of a table• Create and use a query• Create and use a form • Create and print custom reports• Modify a report in Layout view

Objectives

Page 4: Access Chapter 01

Databases and Database Objects: An Introduction 4

Project – Database Creation

Page 5: Access Chapter 01

Databases and Database Objects: An Introduction 5

• Identify the tables• Determine the primary keys• Determine the additional fields• Determine relationships between the tables• Determine data types for the fields• Identify and remove any unwanted redundancy• Determine a storage location for the database• Determine additional properties for fields• Determine the best method for distributing the

database objects

General Project Guidelines

Page 6: Access Chapter 01

Databases and Database Objects: An Introduction 6

• With a USB flash drive connected to one of the computer’s USB ports, ensure the New tab is selected in the Backstage view and that Blank database is selected in the New gallery

• Click the Browse button in the right pane of the New gallery to display the File New Database dialog box

• Type the desired file name in the File New Database dialog box to change the file name. Do not press the ENTER key after typing the file name

• Navigate to the desired save location• Click the OK button, which returns you to the New gallery• Click the Create button in the right pane of the New gallery to create

the database on the selected drive with the entered file name

Creating a Database

Page 7: Access Chapter 01

Databases and Database Objects: An Introduction 7

Creating a Database

Page 8: Access Chapter 01

Databases and Database Objects: An Introduction 8

• Right-click the column heading for the desired primary key field to display a shortcut menu

• Right-click the column heading for the field to display a shortcut menu

• Type the new desired name for the field• Click the white space immediately below the field name to

complete the addition of the field• Click the Data Type box arrow (Table Tools Fields tab |

Formatting group) to display a menu of available data types• Click the desired data type

Modifying the Primary Key

Page 9: Access Chapter 01

Databases and Database Objects: An Introduction 9

• Click the Field Size text box (Table Tools Fields tab | Properties group) to select the current field size, use either the delete or backspace keys to erase the current field size, and then type the new field size

• Click the Name & Caption button (Table Tools Fields tab | Properties group) to display the Enter Field Properties dialog box

• Click the Caption text box (Enter Field Properties dialog box), and then type the desired caption

• Click the Description text box, and then type the desired description

• Click the Description text box, and then type the desired description

Modifying the Primary Key

Page 10: Access Chapter 01

Databases and Database Objects: An Introduction 10

Modifying the Primary Key

Page 11: Access Chapter 01

Databases and Database Objects: An Introduction 11

• Click the Click to Add column heading to display a menu of available data types

• Click the desired data type• Enter the desired field name• Click the white space below the field name to

complete the change of the name. Click the white space a second time to select the field

• Change the field size, if necessary

Defining the Remaining Fields in a Table

Page 12: Access Chapter 01

Databases and Database Objects: An Introduction 12

• Click the Save button on the Quick Access Toolbar to display the Save As dialog box

• Type the desired file name• Click the OK button (Save As dialog box) to save

the table

Saving a Table

Page 13: Access Chapter 01

Databases and Database Objects: An Introduction 13

• Click the View button arrow (Table Tools Fields tab | Views group) to display the View button menu

• Click the View button arrow (Table Tools Fields tab | Views group) to display the View button menu

Viewing the Table in Design View

Page 14: Access Chapter 01

Databases and Database Objects: An Introduction 14

• Click the Close button for the open table to close the table

Closing the Table

Page 15: Access Chapter 01

Databases and Database Objects: An Introduction 15

• Right-click the table in the Navigation Pane to display the shortcut menu

• Click Design View on the View button menu to view the table in Design view

• Click the Shutter Bar Open/Close Button to close the Navigation Pane

• Type the desired values in each field, pressing the TAB key to move to the next field

Adding Records to a Table

Page 16: Access Chapter 01

Databases and Database Objects: An Introduction 16

Adding Records to a Table

Page 17: Access Chapter 01

Databases and Database Objects: An Introduction 17

• Point to the right boundary of the field selector so that the mouse pointer becomes a two-headed arrow

• Double-click the right boundary of the field selector to resize the field so that it best fits the data

• Save the changes to the layout by clicking the Save button on the Quick Access Toolbar

• Click the table’s Close button to close the table

Resizing Columns in a Datasheet

Page 18: Access Chapter 01

Databases and Database Objects: An Introduction 18

Resizing Columns in a Datasheet

Page 19: Access Chapter 01

Databases and Database Objects: An Introduction 19

• If necessary, open the Navigation Pane and select the table you wish to preview and print

• Click File on the Ribbon to open the Backstage view

• Click the Print tab in the Backstage view to display the Print gallery

• Click the Print Preview button in the Print gallery to display a preview of what the table will look like when printed

Previewing and Printing the Contents of a Table

Page 20: Access Chapter 01

Databases and Database Objects: An Introduction 20

• Click the Print button (Print Preview tab | Print group) to display the Print dialog box

• Click the OK button (Print dialog box) to print the table

• When the printer stops, retrieve the hard copy• Click the Close Print Preview button (Print Preview

tab | Close Preview group) to close the Print Preview window

Previewing and Printing the Contents of a Table

Page 21: Access Chapter 01

Databases and Database Objects: An Introduction 21

Previewing and Printing the Contents of a Table

Page 22: Access Chapter 01

Databases and Database Objects: An Introduction 22

• Open the Navigation Pane• Click Create on the Ribbon to display the Create tab• Click the Table Design button (Create tab | Tables group)

to create a new table in Design view• Type the desired field name in the Field Name column• Click the Primary Key button (Table Tools Design tab |

Tools group) if the field you are adding is the primary key• Type the desired description in the Description column

Creating a Table in Design View

Page 23: Access Chapter 01

Databases and Database Objects: An Introduction 23

• Type the desired field size in the Field Size text box in the Field Properties pane

• Type the desired caption in the Caption text box

Creating a Table in Design View

Page 24: Access Chapter 01

Databases and Database Objects: An Introduction 24

• Click External Data on the Ribbon to display the External Data tab

• Click the Excel button (External Data tab | Import & Link group) to display the Get External Data – Excel Spreadsheet dialog box

• Click the Browse button (Get External Data – Excel Spreadsheet dialog box) to display the File Open dialog box

• Navigate to and select the desired file• Click the Open button (File Open dialog box), which will

return you to the Get External Data dialog box

Importing an Excel Worksheet

Page 25: Access Chapter 01

Databases and Database Objects: An Introduction 25

• Follow the remaining steps in the wizard to import the Excel worksheet– Choose where to import the data– Preview the data you are importing– Name the table (if importing to a new table)

Importing an Excel Worksheet

Page 26: Access Chapter 01

Databases and Database Objects: An Introduction 26

• If necessary, open the Navigation Pane• Select the table you wish to query• Click Create on the Ribbon to display the Create tab• Click the Query Wizard button (Create tab | Queries

group) to display the New Query dialog box• Be sure Simple Query Wizard is selected, and then

click the OK button (New Query dialog box) to display the Simple Query Wizard dialog box

Using the Simple Query Wizard to Create a Query

Page 27: Access Chapter 01

Databases and Database Objects: An Introduction 27

• Follow the remaining steps in the wizard to finish creating the query

Using the Simple Query Wizard to Create a Query

Page 28: Access Chapter 01

Databases and Database Objects: An Introduction 28

• Right-click the query to open in the Navigation Pane to produce a shortcut menu

• Click Design View on the shortcut menu to open the query in Design view

• Click the Criteria row in the column for the field for which you want to specify the criteria, and then type the criteria

• Click Design View on the shortcut menu to open the query in Design view

Using a Criterion in a Query

Page 29: Access Chapter 01

Databases and Database Objects: An Introduction 29

Using a Criterion in a Query

Page 30: Access Chapter 01

Databases and Database Objects: An Introduction 30

• Select the table in the Navigation Pane for which you want to create a form

• If necessary, click Create on the Ribbon to display the Create tab

• If the form appears in Layout view, click the Form View button on the Access Status bar to display the form in Form view

Creating a Form

Page 31: Access Chapter 01

Databases and Database Objects: An Introduction 31

• Click the Save button on the Quick Access Toolbar to display the Save As dialog box

• Type the desired form name, and then click the OK button to save the form

• Click the Close button for the form to close the form

Creating a Form

Page 32: Access Chapter 01

Databases and Database Objects: An Introduction 32

Creating a Form

Page 33: Access Chapter 01

Databases and Database Objects: An Introduction 33

• Select the table in the Navigation Pane for which you want to create the report

• Click Create on the Ribbon to display the Create tab• Click the Report button (Create tab | Reports group) to

create the report• Click the Save button on the Quick Access Toolbar to

display the Save As dialog box and then type the name of the report

• Click the OK button (Save As dialog box) to save the report

Creating a Report

Page 34: Access Chapter 01

Databases and Database Objects: An Introduction 34

Creating a Report

Page 35: Access Chapter 01

Databases and Database Objects: An Introduction 35

• Right-click the report in the Navigation Pane you wish to modify and then click Layout View on the shortcut menu

• If a Field list appears, click the Add Existing Fields button (Report Layout Tools Design tab | Tools group) to remove the Field list from the screen

• Close the Navigation Pane• Click the column heading you wish to modify two

times• Type the new column heading

Modifying Column Headings and Resizing Columns

Page 36: Access Chapter 01

Databases and Database Objects: An Introduction 36

• Point to the right boundary of the field you wish to resize until the mouse pointer changes to a two-headed arrow and then drag the right boundary to the desired position

Modifying Column Headings and Resizing Columns

Page 37: Access Chapter 01

Databases and Database Objects: An Introduction 37

• Select the field you want to total• Click Design on the Ribbon to display the Design tab• Click the Totals button (Report Layout Tools Design

tab | Grouping & Totals group) to display the list of available calculations

• Click Sum to calculate the sum of the amount of paid values

• Click the Save button on the Quick Access Toolbar to save your changes to the report layout

Adding Totals to a Report

Page 38: Access Chapter 01

Databases and Database Objects: An Introduction 38

Adding Totals to a Report

Page 39: Access Chapter 01

Databases and Database Objects: An Introduction 39

• Click File on the Ribbon to open the Backstage view

• If necessary, click the Info tab in the Backstage view to display the Information gallery

• Click the ‘View and edit database properties’ link in the right pane of the Info gallery

• Enter the desired database properties• Click the OK button to save your changes

Changing Database Properties

Page 40: Access Chapter 01

Databases and Database Objects: An Introduction 40

Changing Database Properties

Page 41: Access Chapter 01

Databases and Database Objects: An Introduction 41

• Open the database to be backed up• Click File on the Ribbon to open the Backstage view,

and then click the Save & Publish tab• With Save Database As selected in the File Types

area, click Back Up Database in the Save Database As area, and then click the Save As button

• Selected the desired location in the Save As box. If you do not want the name Access has suggested, enter the desired name in the File name text box

• Click the Save button to back up the database

Backing Up a Database

Page 42: Access Chapter 01

Databases and Database Objects: An Introduction 42

• Open the database to be compacted• Click File on the Ribbon to open the Backstage

view, and then, if necessary, select the Info tab• Click the Compact & Repair Database button in

the Information gallery to compact and repair the database

Compacting and Repairing a Database

Page 43: Access Chapter 01

Databases and Database Objects: An Introduction 43

• Opening another database• Closing a database without exiting Access• Saving a database with another name• Deleting a table or other object in the database• Renaming an object in the database

Additional Operations

Page 44: Access Chapter 01

Databases and Database Objects: An Introduction 44

• Design a database to satisfy a collection of requirements

• Describe the features of the Access window• Create a database• Create tables in Datasheet and Design views• Add records to a table

Chapter Summary

Page 45: Access Chapter 01

Databases and Database Objects: An Introduction 45

• Close a database• Open a database• Print the contents of a table• Create and use a query• Create and use a form • Create and print custom reports• Modify a report in Layout view

Chapter Summary

Page 46: Access Chapter 01

Chapter 1 Complete

MicrosoftAccess 2010