microsoft access

33
FIRST COURSE Microsoft Access

Upload: tuvya

Post on 06-Jan-2016

15 views

Category:

Documents


1 download

DESCRIPTION

Microsoft Access. Organizing Data. Your first step in organizing data is to identify the individual fields The specific value, or content, of a field is called the field value Record Next, you group related fields together into tables. Databases and Relationships. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Microsoft Access

FIRST COURSE

Microsoft Access

Page 2: Microsoft Access

XP

2

Organizing Data• Your first step in organizing data is to identify the

individual fields– The specific value, or content, of a field is called the

field value– Record

• Next, you group related fields together into tables

Page 3: Microsoft Access

XP

3

Databases and Relationships• A collection of related tables is called a database, or a

relational database• You connect the records in the separate tables through a

common field• A primary key is a field, or a collection of fields, whose

values uniquely identify each record in a table• When you include the primary key from one table as a

field in a second table to form a relationship between the two tables, it is called a foreign key in the second table

• Primary keys are not required, but are best practice

Page 4: Microsoft Access

XP

4

Databases and Relationships

Page 5: Microsoft Access

XP

5

Exploring the Microsoft Access Window

Page 6: Microsoft Access

XP

6

Creating a Table in Datasheet View

• Click the Create tab on the Ribbon• In the Tables group, click the Table button• Accept the default ID primary key field with the

AutoNumber data type, or rename the field and change its data type, if necessary

• Double-click the Add New Field column heading, and then type the name for the field you are adding to the table

• Press the Tab key or the Enter key

Page 7: Microsoft Access

XP

7

Creating a Table in Datasheet View• Add all the fields to your table by typing the field names in

the column headings and pressing the Tab key or the Enter key to move to the next column

• In the first row below the field names, enter the value for each field in the first record, pressing the Tab key or the Enter key to move from field to field

• After entering the value for the last field in the first record, press the Tab key or the Enter key to move to the next row, and then enter the values for the next record. Continue this process until you have entered all the records for the table

• Click the Save button on the Quick Access Toolbar, enter a name for the table, and then click the OK button

Page 8: Microsoft Access

XP

8

Creating a Table in Datasheet View

Page 9: Microsoft Access

XP

9

Entering Records

Page 10: Microsoft Access

XP

10

Saving a Table• Click the Save button on the Quick Access

Toolbar. The Save As dialog box opens• In the Table Name text box, type the name for

the table• Click the OK button

Page 11: Microsoft Access

XP

11

Opening a Database• Start Access and display the Getting Started with

Microsoft Office Access page• Click the More option to display the Open dialog

box• Navigate to the database file you want to open,

and then click the file• Click the Open button

Page 12: Microsoft Access

XP

12

Navigating a Datasheet• The navigation buttons provide another way to

move vertically through the records

Page 13: Microsoft Access

XP

13

Creating a Simple Query• A query is a question you ask about the data

stored in a database• The Simple Query Wizard allows you to select

records and fields quickly

Page 14: Microsoft Access

XP

14

Creating a Simple Query

Page 15: Microsoft Access

XP

15

Creating a Simple Form• A form is an object you use to enter, edit, and

view records in a database• You can design your own forms, use the Form

Wizard, or use the Form tool to create a simple form with one mouse click

Page 16: Microsoft Access

XP

16

Creating a Simple Report• A report is a formatted printout (or screen

display) of the contents of one or more tables in a database

• The Report tool places all the fields from a selected table (or query) on a report, making it the quickest way to create a report

Page 17: Microsoft Access

XP

17

Creating a Simple Report

Page 18: Microsoft Access

XP

18

Creating a Simple Report

Page 19: Microsoft Access

XP

19

Creating a Simple Report

Page 20: Microsoft Access

XP

20

Printing a Report• Open the report in any view, or select the report in the

Navigation Pane• To print the report with the default print settings, click

the Office Button, point to Print, and then click Quick Print

or• To display the Print dialog box and select the options

you want for printing the report, click the Office Button, point to Print, and then click Print (or, if the report is displayed in Print Preview, click the Print button in the Print group on the Print Preview tab)

Page 21: Microsoft Access

XP

21

Viewing Objects in the Navigation Pane

Page 22: Microsoft Access

XP

22

Creating a Table in Design View

Page 23: Microsoft Access

XP

23

Defining a Field in Design View• In the Field Name box, type the name for the

field, and then press the Tab key• Accept the default Text data type, or click the

arrow and select a different data type for the field. Press the Tab key

• Enter an optional description for the field, if necessary

• Use the Field Properties pane to type or select other field properties, as appropriate

Page 24: Microsoft Access

XP

24

Defining a Field in Design View

Page 25: Microsoft Access

XP

25

Specifying the Primary Key in Design View• In the Table window in Design view, click in the

row for the field you’ve chosen to be the primary key. If the primary key will consist of two or more fields, click the row selector for the first field, press and hold down the Ctrl key, and then click the row selector for each additional primary key field

• In the Tools group on the Table Tools Design tab, click the Primary Key button

Page 26: Microsoft Access

XP

26

Specifying the Primary Key in Design View

Page 27: Microsoft Access

XP

27

Defining Table Relationships• One of the most powerful features of a relational

database management system is its ability to define relationships between tables

• You use a common field to relate one table to another

Page 28: Microsoft Access

XP

28

Defining Table Relationships

Page 29: Microsoft Access

XP

29

Defining Table Relationships• A one-to-many relationship exists between two

tables when one record in the first table matches zero, one, or many records in the second table, and when one record in the second table matches at most one record in the first table– Primary table– Related table

Page 30: Microsoft Access

XP

30

Defining Table Relationships• Referential integrity is a set of rules that Access

enforces to maintain consistency between related tables when you update data in a database

• The Relationships window illustrates the relationships among a database’s tables

• Click the Database Tools tab on the Ribbon• In the Show/Hide group on the Database Tools

tab, click the Relationships button

Page 31: Microsoft Access

XP

31

Defining Table Relationships

Page 32: Microsoft Access

XP

32

Defining Table Relationships

Page 33: Microsoft Access

XP

33

Demo• Basic Address Book