Upload
coursecontent
View
280
Download
1
Embed Size (px)
DESCRIPTION
Lecture notes to accompany course work.
Citation preview
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
THE O’LEARY SERIES
Lab
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Creating a Database
1
Microsoft Access 2013 Lab 1
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Access Lab 1 Objectives
1. Plan, create, and modify a database 2. Create and save a table structure 3. Define field names, data types, field properties,
and primary key fields 4. Enter and edit data 5. Add attachments
8/8/14
2
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Objectives continued…
6. Change views 7. Adjust column widths 8. Use the Best Fit feature 9. Create a second table 10. Navigate among records
8/8/14
3
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Objectives continued…
11. Add, copy and move fields 12. Add and delete records 13. Document a database 14. Preview and print a table 15. Change page orientation 16. Close and open a table and database
8/8/14
4
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Concept Preview
• Database • Object • Data Type • Field Property
• Primary Key • Relationship • Subdatasheet
8/8/14
5
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Outline of Lab 1
• Designing a New Database • Planning the Database
• Creating and Naming the Database File • Creating the database file • Exploring the Access window • Using the Navigation Pane
8/8/14
Outline continues on next slide
6
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Outline of Lab 1 continued…
• Creating a Table • Defining Table Fields • Entering Field Data • Changing Field Names • Defining Field Data Type • Using the Click to Add Feature • Using Field Models • Deleting a Field in Datasheet View
8/8/14
Outline continues on next slide
7
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Outline of Lab 1 continued…
• Field Property • Switching Views • Setting Field Size • Changing Data Type • Editing Field Names • Defining a Field as a
Primary Key field
• Entering Field Descriptions
• Deleting a Field in Design View
• Creating a Field in Design View
• Creating an Attachment Field
8/8/14
Outline continues on next slide
8
• Modifying Field Properties
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Outline of Lab 1 continued…
• Entering and Editing Records • Entering and Editing Records • Verifying Data Accuracy and Validity • Using AutoCorrect • Attaching Files to Records • Moving Between Fields • Zooming a Field
8/8/14
Outline continues on next slide
9
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Outline of Lab 1 continued…
• Changing Column Width • Resizing a Column • Using Best Fit
• Navigating Among Records • Moving Using the Keyboard • Moving Using the Record Navigation Buttons • Moving to a Specific Record
8/8/14
Outline continues on next slide
10
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Outline of Lab 1 continued…
• Deleting Records • Creating a Table in Design View • Creating a Table • Inserting a Field • Moving a Field • Copying Field Content
8/8/14
Outline continues on next slide
11
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Outline of Lab 1 continued…
• Creating Relationships • Closing Tables • Viewing Relationships • Defining Relationships • Opening Tables
• Closing and Opening a Database • Closing a Database • Opening a Database
8/8/14
Outline continues on next slide
12
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Outline of Lab 1 continued…
• Setting Database and Object Properties • Documenting a Database • Document a Table Object
• Previewing and Printing a Table • Previewing the Table • Printing a Table • Changing the Page Orientation and Margins
8/8/14
Outline continues on next slide
13
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Outline of Lab 1 continued…
• Exiting Access • Review • Key Terms • FAQs • Discussion Questions
8/8/14
14
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Designing a New Database
8/8/14
15
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Concept 1
• Database • Organized collection of related information
• Table • Vertical columns & horizontal rows
where information is stored • Record
• A row • Information about one person, place, or thing
• Field • A column • Smallest unit of information
8/8/14
16
Database
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Creating and Naming the Database File
8/8/14
17
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Access Application Window
8/8/14
18
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Concept 2
8/8/14
19
Object
Object Use Table Store data. Query Find and display selected data. Form View, add, and update data in tables. Report Analyze and print data in a specific layout.
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Using the Navigation Pane
• Navigation pane is located on the left edge of the work area • Use the Shutter Bar
button to show or hide display
8/8/14
20
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Using the Navigation Pane
8/8/14
21
View Purpose
Datasheet view Provides a row-and-column view of the data in tables or query results.
Form view Displays the records in a form.
Report view Displays the table data in a report layout.
Design view Used to create a table, form, query, or report. Displays the underlying design structure, not the data.
Layout view Displays the object’s data while in the process of designing the object.
Print Preview Displays a form, report, table or query as it will appear when printed.
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Creating a Table
• Datasheet view • A visual presentation of the data • Consists of a grid of rows and columns • Intersection of row and column is a cell • Header row contains field names • Select Record button is used to select an entire
record • Current Record box shows the number of the
current record as well as the total number of records in the table
8/8/14
22
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Defining Table Fields
Field Name Data
Employee # 04731
Hire Date August 19, 2005
Last Name Marchant
First Name Roberta
Address 564 Palm Avenue
City Landis
State CA
Zip Code 92120-3741
Home Phone (507) 555-4990
Birth Date May 18, 1987
Photo/Resume Roberta.jpg 8/8/14
23
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Entering Field Data
8/8/14
24
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Changing Field Names
• A field name is used to identify data stored in the field • Should describe the contents of the data entered in the field • Name can be up to 64 characters long • Cannot begin with a space • Best to use short field names
8/8/14
25
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Concept 3
• Data type defines the type of data the field will contain • Used to ensure right kind of data is entered • Important to choose appropriate data type
8/8/14
26
Data Type
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Defining Field Data Type
8/8/14
27
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Access 2013 Data Types
• Short Text • Long Text • Number • Date/Time • Currency • AutoNumber
• Yes/No • OLE Object • Hyperlink • Attachment • Calculated
8/8/14
28
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Adding Fields with Click to Add
8/8/14
29
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Using Field Models
• A list of predefined fields • Each field model definition includes: • Field name • Data type • Settings that control appearance and behavior of
the field
• Some field models consist of a set of several fields that are commonly used together
8/8/14
Sample footer text
30
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Deleting a Field in Datasheet View
8/8/14
31
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Deleting a Field in Datasheet View
8/8/14
32
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Deleting a Field in Datasheet View
8/8/14
33
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Concept 4
8/8/14
34
Field Property
• Characteristic that defines a field • Each field has a set of properties • Enhances the way table works
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Modifying Field Properties
8/8/14
35
Field Property Description Field Size Sets the maximum number of characters that can be entered in the field.
Format Specifies the way data displays in a table and prints.
Input Mask Simplifies data entry by controlling the data that is required in a field and the way the data is to be displayed.
Caption Specifies a field label other than the field name that is used in queries, forms, and reports.
Default Value Automatically fills in a certain value for this field in new records as you add to the table. You can override a default value by typing a new value into the field.
Validation Rule Limits data entered in a field to values that meet certain requirements.
Validation Text Specifies the message to be displayed when the associated Validation Rule is not satisfied.
Required Specifies whether a value must be entered in a field.
Allow Zero Length Specifies whether an entry containing no characters is valid. This property to used to indicate that you know no value exists for a field. A zero-length string is entered as “” with no space between the quotation marks.
Indexed Sets a field as an index field (a field that controls the order of records). This speeds up searches on fields that are searched frequently.
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Switching Views
8/8/14
36
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Design View
• Displays the structure of the table • Does not show table
data • Used to make
changes
8/8/14
Sample footer text
37
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Setting Field Size
8/8/14
38
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Changing Data Type
8/8/14
39
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Editing Field Names
8/8/14
40
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Concept 5
• A field that uniquely identifies each record • used to associate data from multiple tables
• Most tables have at least one primary key Key data MUST be unique for each record Field cannot be empty or null Data in the field rarely changes
• Prevents duplicate records from being entered in the table • Used to control the order in which records display in the
table • Composite key is created when table has more than one
key identified as primary 8/8/14
41
Primary Key
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Defining a Field as a Primary Key
8/8/14
42
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Entering Field Descriptions
8/8/14
43
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Deleting a Field in Design View
8/8/14
44
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Creating a Field in Design View
8/8/14
45
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Creating an Attachment Field
8/8/14
46
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Entering and Editing Records
8/8/14
47
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Verifying Data Accuracy and Validity
8/8/14
48
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Using AutoCorrect
• Typing errors that can be corrected automatically include … • Capitalizing names of days, the first letter of
sentences, and other common typing errors • Misspellings
• AutoCorrect Option button appears next to any text corrected
8/8/14
49
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Attaching Files to Records
• Field must be an attachment data type • Identified by a paperclip
icon in the field header • Used to attach a graphic
or a text file
8/8/14
50
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Attaching a File
8/8/14
51
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Attaching a File
8/8/14
52
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Moving Between Fields
Key Movement
or Next field
or + Previous field
Current field in previous record
Current field in next record
First field in record
Last field in record
8/8/14
53
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Zooming a Field
• View a field’s content by expanding it • Select the field • Press Shift + F2
54
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Changing Column Width
• Resize a column – drag column border to increase or decrease • Use Best Fit - select all columns and change their
widths at the same time
8/8/14
55
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Using Best Fit
• Select all columns and adjust with Best Fit • Double click the column
border to activate the Best Fit feature • Automatically resized to
fit the longest entry or column head
8/8/14
56
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Navigating Among Records
• Moving using the Keyboard
• Moving using the Record Navigation Buttons
8/8/14
57
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Moving to a Specific Record
8/8/14
58
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Deleting Records
8/8/14
59
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Creating a Table in Design View
8/8/14
60
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Inserting a Field
8/8/14
61
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Moving a Field in Datasheet View
• In Datasheet view • Select the column and drag
the selected column to the new location • A heavy black bar shows
where the column will be placed when you stop dragging
8/8/14
62
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Moving a Field in Design View
• In Design View • Click the gray row
selector button • Drag until the black
move indicator line is where you want the field to be.
8/8/14
63
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Copying Field Content
8/8/14
64
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Concept 6
• Establishes the association between common fields in two tables • Related fields • Must be the same data type • Must contain the same kind of information • Can have different field names
• Special exceptions for the AutoNumber data type 8/8/14
65
Relationship
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Types of Relationships
8/8/14
66
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Viewing Relationships
8/8/14
67
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Defining Relationships
8/8/14
68
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Opening a Table
8/8/14
69
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Concept 7
• A data table nested in a main data table • Contains information related or joined to the main
table • Allows easy viewing and editing • Created automatically when relationships are
established
8/8/14
70
Subdatasheet
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Subdatasheet
8/8/14
71
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Closing and Opening a Database
• Closing a database • Do not need to save first
• Changes made to the data are automatically saved.
• Changes to an object’s design must be saved for the changes to be permanent.
• Methods to Open a Database • Click File, Open • Click File, Recent and select from list • Select from list of recent database files
8/8/14
72
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Setting Database and Object Properties
8/8/14
73
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Documenting a Table Object
8/8/14
74
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Previewing and Printing a Table
• Preview table to save time • Displays each page in a
reduced size • Can make changes to the
layout before printing
• Printing a table • Use the Print button in the
Print Group • Define printer settings
• Page orientation categories • Portrait
• Landscape
8/8/14
75
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Previewing the Table
8/8/14
76
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Printing a Table
8/8/14
77
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Print Range Options
Option Action
All Prints the entire document.
Pages Prints pages you specify by typing page numbers in the text box.
Selected Records Prints selected records only.
8/8/14
78
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Changing Page Orientation and Margins
• Orientation refers to the direction that text prints on a page
• Portrait –prints across the width of the page • Landscape – prints across the length of the page
• The margin is the blank space around the edge of the page.
• The margin is the blank space around the edge of a page.
8/8/14
79
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Exiting Access
• Click X - Close in the Access window bar • You can also select File and choose Exit Access
8/8/14
80
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Access 2013 Key Terms
• Allow Zero Length property • Attachment data type • AutoNumber data type • Best Fit feature • Calculated data type • Caption property • cell
• column width • composite key • Currency data type • current field • current record • Current record box • data type • database
8/8/14
81
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Key Terms continued…
• Datasheet view • Date/Time data type • Default Value property • Design view • drawing object • field • field name • field property
• Field Size property • field model • foreign key • form • Form view • Format property • graphic • header row
8/8/14
82
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Key Terms continued…
• Indexed property • Input Mask property • Layout view • Many-to-many • margin • Memo data type
• Navigation pane • normal form • normalization • Number data type • object • OLE Object data type • One-to-many
8/8/14
83
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Key Terms continued…
• Orphaned records • picture • primary key • Print Preview • query • record • Record navigation buttons
• Referential integrity • relational database • report • Report view • Required property • Select Record button • serial value
8/8/14
84
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Key Terms continued…
• subdatasheet • table • Text data type • Validation Rule property
• Validation Text property • view • Yes/No data type
8/8/14
85
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
FAQs
1. What is a relational database? 2. Does a database contain one table or
several tables? 3. What is the file extension of an Access 2013
database? 4. What is the difference between a field
name and the data stored in the field? 5. I’m not sure I understand the Attachment
data type. Please explain. 8/8/14
86
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
FAQs
6. What are field properties? 7. What is a primary key? What is a composite
key? 8. How can I verify that the data entered in a
field is accurate? 9. Help! I can’t see the data in a field. How
can I make the field bigger? 10. What is a relationship and how are they
used? 8/8/14
87
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Discussion Questions
1. Discuss three methods to create a database.
2. Discuss why it is important to plan a database before creating it. How can proper planning save you time later?
3. What are subdatasheets? Give examples of how they are used.
8/8/14
88
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Discussion Questions
4. Design view and Datasheet view are two views in Access. Discuss when it would be appropriate to use each of these views.
5. Discuss why it is important to choose the correct data type for a field. What may happen to the data if you change the data type later?
8/8/14
89
THE
O’L
EARY
SER
IES
© 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part. © 2014 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner. This document may not be copied, scanned, duplicated, forwarded, distributed, or posted on a website, in whole or part.
Access Lab 1
Creating a Database
8/8/14
90