Professional Documents
Culture Documents
New Perspectives Microsoft Office 365 Access 2019 Comprehensive full chapter pdf docx
New Perspectives Microsoft Office 365 Access 2019 Comprehensive full chapter pdf docx
New Perspectives Microsoft Office 365 Access 2019 Comprehensive full chapter pdf docx
https://ebookmass.com/product/new-perspectives-microsoft-
office-365-access-2019-comprehensive-1st-edition-mark-shellman/
https://ebookmass.com/product/etextbook-978-1305880139-new-
perspectives-microsoft-office-365-access-2016-comprehensive/
https://ebookmass.com/product/new-perspectives-microsoft-
office-365-office-2019-introductory-2019th-edition-patrick-carey/
https://ebookmass.com/product/microsoft-
office-365-outlook-2019-comprehensive-corinne-hoisington/
New Perspectives Microsoft Office 365 & Excel 2016:
Intermediate 1st Edition
https://ebookmass.com/product/new-perspectives-microsoft-
office-365-excel-2016-intermediate-1st-edition/
https://ebookmass.com/product/etextbook-978-1305880412-new-
perspectives-microsoft-office-365-excel-2016-intermediate/
https://ebookmass.com/product/microsoft-
office-365-office-2016-intermediate-freund/
https://ebookmass.com/product/microsoft-
office-365-office-2016-introductory-freund/
https://ebookmass.com/product/shelly-cashman-series-microsoft-
office-365-excel-2019-comprehensive-mindtap-course-list-1st-
edition-steven-m-freund/
~- '# CENGAGE
·-
New Perspectives Series
Working with the Navigation Pane ........... AC 3-53 Module 5 Creating Advanced Queries and Enhancing
Table Design
Session 3.2 Quick Check ............... . ... AC 3-55 Making the Clinic Database Easier
Review Assignments ... . ........... . ...... AC 3-56 to Use . . . . .. . ... . ... . ...... . . . . .. . . AC 5-1
Case Problems ........................... AC 3-57 Session 5.1 Visual Overview: Calculated Field .... AC 5-2
Reviewing the Clinic Database................ AC 5-4
Module 4 Creating Forms and Reports
Using Forms and Re p orts to Display Using a Pattern Match in a Query ............. AC 5-5
Patient and Visit Data ....... . . . . . . . . . AC 4-1
Using a List-of-Values Match in a Query ........ AC 5-8
Session 4.1 Visual Overview: Using the Not Logical Operator in a Query ... . . AC 5-9
Form Displayed in Form View ................ AC 4-2
Using an AutoFilter to Filter Data .......... AC 5-10
Creating a Form Using the Form Wizard ........ AC 4-4
Assigning a Conditional Value to a
Modifying a Form's Design in Layout View ...... AC 4-7 Calculated Field .......................... AC 5-13
Applying a Theme to a Database Object ...... AC 4-7 Creating a Parameter Query ... . ........... . AC 5-17
Adding a Picture to a Form.·············· AC 4-11 Creating a More Flexible Parameter Query ... AC 5-19
Changing the Color of Text on a Form . . .... AC 4-13 Session 5.1 Quick Check ...... . ........... . AC 5-21
Navigating a Form ........................ AC 4-15
Session 5.2 Visual Overview:
Finding Data Using a Form · · · · · · · · · · · · · · · · · AC 4-16 Advanced Query Wizards .................. AC 5-22
Maintaining Table Data Using a Form ......... AC 4-19 Creating a Crosstab Query ................. AC 5-24
Previewing and Printing Selected · a F.md Dup 1·1cates Query . . . . . . . . . . . . AC 5-30
c reat1ng
Form Records ............................ AC 4-20 C . F' d U h dQ AC 5 32
reat1ng a m nmatc e uery . . . . . . . . . . . -
Creating a Form with a Main Form
Creating a Top Values Query ... . ........... . AC 5-34
and a Subform ........................... AC 4-22
Session 5.2 Quick Check ....... . ........... AC 5-35
Session 4.1 Quick Check ... ......... .. .. . .. AC 4-27
Session 5.3 Visual Overview:
Session 4.2 Visual Overview:
Lookup Fields and Input Masks . . . . ......... . AC 5-36
Report Displayed in Print Preview ..... . ...... AC 4-28
Creating a Lookup Field .................... AC 5-38
Creating a Report Using the Report Wizard .... AC 4-30
Using the Input Mask Wizard ... . ........... . AC 5-42
Modifying a Report's Design in Layout View .. . . AC 4-34
Identifying Object Dependencies ............ AC 5-47
Applying a Theme to a Report ............ AC 4-34
Defining Data Validation Rules . . ............ AC 5-48
Changing the Alignment of Field Values .... AC 4-35
Defining Field Validation Rules ............ AC 5-49
Moving and Resizing Fields on a Report .... AC 4-36
Defining Table Validation Rules . . ........ . AC 5-50
Changing the Font Color and Inserting
. · R AC Working with Long Text Fields .............. AC 5-52
a P1cture m a eport . . . . . . . . . . . . . . . . . . . . 4-38
Designating a Trusted Folder .. . . .. ........ . AC 5-55
Using Conditional Formatting in a Report. ..... AC 4-39
Session 5.3 Quick Check ................... AC 5-57
Session 4.2 Quick Check ............ . ...... AC 4-43
Review Assignments ...................... AC 5-58
Review Assignments ...................... AC 4-44
Case Problems ........................... AC 5-59
Case Pro bl ems......... . . . .......... . .... Ac 4- 45
Copyright 2020 Ccn,gagc Learning. All Rights R~rvcd. May not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that any s uppre-Ssed content does not materially affect the overnlllearning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
Microsoft Office 365 & Access 2019, Comprehensive vii
Module 6 Using Form Tools and Creating Custom Session 6.3 Visual Overview:
Forms Custom Form in Form View ......... . ....... AC 6-44
Creating Forms for Lakewood Community
Health Services ..................... AC 6-1 Adding a Combo Box to Find Records ....... . AC 6-46
Creating a Relationship Report and Using Adding Calculated Controls to a Main Form .. AC 6-56
the Documenter ........................... AC 6-7 Resizing, Moving, and Formatting
Creating Forms Using Form Tools ........ . ... AC 6-1 1 Calculated Controls . ........ .. . . ....... . AC 6-58
Creating a Form Using the Changing the Tab Order in a Form ........... AC 6-61
Data sheet Tool ........................ AC 6-11 Improving a Form's Appearance ............. AC 6-64
Creating a Form Using the Adding a Line to a Form ................. AC 6-64
Multiple Items Tool ..................... AC 6-13 Adding a Rectangle to a Form .. . ......... AC 6-65
Creating a Form Using the Modifying the Visual Effects of the
Split Form Tool ........ . ............... AC 6-14 Controls in a Form ...................... AC 6-66
Modifying a Split Form in Layout View ...... AC 6-15 Session 6.3 Quick Check ................... AC 6-69
Anchoring Controls in a Form ............. AC 6-19 Review Assignments ...................... AC 6-70
Session 6.1 Quick Check . .. . . ....... . .. . ... AC 6-21 Case Problems ...... . ......... . . . ....... . AC 6-72
Session 6.2 Visual Overview: Module 7 Creating Custom Reports
Custom Form in Design View . . ...... . .. . ... AC 6-22 Creating Custom Reports for Lakewood
Community Health Services . ... . . . . . . . . AC 7-1
Planning and Designing a Custom Form ....... AC 6-24
Session 7.1 Visual Overview: Report Sections .. . . AC 7-2
Creating a Custom Form in Design View . .. . ... AC 6-24
Customizing Existing Reports ................ AC 7-4
Working in the Form Window in
Design View . ........ .. . .. .. . ...... . ... AC 6-25 Viewing a Report in Report View .. . ......... . . AC 7-4
Adding Fields to a Form ... . .. . .. . .... . . . AC 6-27 Copying and Pasting a Report into Word ..... AC 7-6
Aligning Form Controls .................... AC 6-28 Modifying a Report in Design View ........ . ...AC 7-15
Resizing and Deleting Controls .......... . ... AC 6-32 Session 7.1 Quick Check. .. . .... .. ......... . .AC 7-19
Adding a Combo Box Control to a Form ... . . . AC 6-34 Session 7.2 Visual Overview:
Using Form Headers and Form Footers ... . ... AC 6-40 Form in Design View and Print Preview ........ AC 7-20
Adding a Title to a Form ................. AC 6-41 Planning and Designing a Custom Report ..... AC 7-22
Session 6.2 Quick Check ... . ............... AC 6-43 Creating a Query for a Custom Report ........ AC 7-23
Copyright 2020 Ccn,gagc Learning . All Rights R~rvcd. M ay not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that a ny s uppre-Ssed content does not materially affect the overnlllearning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
viii New Perspectives Series
Working with Controls in Design View . . ...... AC 7-32 Using a Tab Control in a Form .. . . . ......... . AC 8-26
H.d.
1 mg Dup11ca
· t e a1ues m v
· a Report . . . . . . . . . . AC 7-38 Creating a Chart Using the Chart Wizard ...... AC 8-30
Session 7.2 Quick Check ... . ............... AC 7-39 Using Templates and Application Parts ........ AC 8-36
Exporting a Report to a PDF File ............. AC 8-40
Session 7.3 Visual Overview:
Custom Form in Design View ............... AC 7-40 Integrating Access with Other Applications .... AC 8-42
Understanding Page Header and Linking Data from an Excel Worksheet. ..... AC 8-43
Page Footer Sections ...................... AC 7-42 Session 8.2 Quick Check ................... AC 8-47
Adding the Date to a Report ............. AC 7-42 Review Assignments ...................... AC 8-48
Adding Page Numbers to a Report ........ AC 7-46 Case Problems ........................... AC 8-49
Adding a Report Title to a Module 9 Using Action Queries and Advanced Table
Page Header Section ............ . ...... AC 7-48 Relationships
Enhancing User Interaction with the
Creating Mailing Labels . . .. . ........ . ...... AC 7-50 Health Database ... . . . . . . . .......... AC 9-1
Session 7.3 Quick Check ................... AC 7-54
Session 9.1 Visual Overview:
Review Assignments .... . . . ....... . .. . .... AC 7-55 Action Queries ............................ AC 9-2
Case Problems ........................... AC 7-56 Action Queries ............................ AC 9-4
Module 8 Sharing, Integrating, and Analyzing Data Creating a Make-Table Query ... . ........ . . AC 9-5
Importing, Exporting, Linking,
and Analyzing Data in the Creating an Append Query ............... AC 9-9
Clinic Database ..................... AC 8-1 Creating a Delete Query .... . .. . ........ . AC 9-12
Session 8.1 Visual Overview: Creating an Update Query ... . ........... AC 9-15
Exporting Data to XM L and HTML ............ AC 8-2 Session 9.1 Quick Check ....... . ........... AC 9-17
Exporting an Access Query to an
Session 9.2 Visual Overview:
HTML Document ......... . ................ AC 8-4
Many-to-Many Relationship ................. AC 9-18
Viewing an HTML Document in a
Understanding Types of Table Relationships ... . AC 9-20
Web Browser ........................... AC 8-6
Many-to-Many Relationships .............. AC 9-21
Importing a CSV File as an Access Table . ....... AC 8-7
One-to-One Relationships .. . ............ AC 9-22
Analyzing a Table with the Table Analyzer ... AC 8-11
Defining M:N and 1:1 Relationships
Working with XML Files .................... AC 8-12
Between Tables .. .. .. . ...... . .. . ........ . AC 9-24
Importing Data from an XML File .......... AC 8-13
Understanding Join Types . . .. .. ............ AC 9-27
Saving and Running Import Specifications ... AC 8-14
Inner and Outer Joins ...... . ........... . AC 9-27
Exporting an Access Table as an XML File ... AC 8-17
Self-Joins ............................. AC 9-31
Saving and Running Export Specifications . . . AC 8-20
Using Indexes for Table Fields .............. . AC 9-36
Session 8.1 Quick Check ................... AC 8-23
Creating an Index ...................... AC 9-39
Copyright 2020 Cc n,gagc Learning . All Rights R~rvcd. M ay not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights . some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that a ny s uppre-Ssed content does not materially affect the overnlllearning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
Microsoft Office 365 & Access 2019, Comprehensive
Session 9.2 Quick Check ... . ............... AC 9-41 Review Assignments . ........... . ........ AC 10-50
Review Assignments ............. . .... . ... AC 9-42 Case Problems .......................... AC 10-51
Case Problems . ...................... . ... AC 9-43 Module 11 Using and Writing Visual Basic for
Applications Code
Module 10 Automating Tasks with Macros Creating VBA Code for the
Creating a User Interface for the Health Health Database ... . . . . .. .......... AC 11-1
Dat abase ............... ....... ... AC 10-1
Session 10.1 Visual Overview: Session 11.1 Visual Overview:
The Macro Designer Window ............... AC 10-2 VBA Code Window · · ..................... AC 11-2
Introduction to Visual Basic for Applications .... AC 11-4
Introduction to Macros ................ . ... AC 10-4
Understanding Procedures ............... AC 11-4
Running a Macro ......................... AC 10-4
Understanding Modules ....... . ......... AC 11-5
Viewing a Macro in the Macro Designer ... . ... AC 10-6
Using an Existing VBA Procedure ............ AC 11-6
Using Arguments in a Macro ............. AC 10-7
Examining a VBA Event Procedure ........ . AC 11-8
Adding Actions to a Macro . . .......... . .... AC 10-7
Modifying an Event Procedure ............ AC 11-11
Single Stepping a Macro .................. AC 10-12
Creating Functions in a Standard Module ..... .AC 11-13
Using a Command Button with an
Attached Macro ......................... AC 10-13 Creating a Function .................. . .. AC 11-14
. C~pyri,g_ht 2020 Ccn,gagc Learning. All Rights R~rvcd. May not be copied, 5eanncd, or duplicated in whole or in a
C p n . ~e t_o clcctromc right~. some third party content may be suppressed fronthc cBook and/or cChaptcr{s)
·
&htonal revJew has deemed that any suppre-Ssed content does not materially affect the overnlllearning , .
expenence. engage ammg reserves the nght to remove additiooal content at any time if sutlrequent rights restrictions require it.
New Perspectives Series
Session 11.2 Quick Check . . . .............. AC 11-37 Session 12.2 Quick Check ................. AC 12-49
Review Assignments .................. . .. AC 11-38 Review Assignments ......... . ........... AC 12-50
Case Problems . ........... . ....... . .. . .. AC 11-38 Case Problems .............. . ........... AC 12-51
Copyright 2020 Ccn,gagc Learning. All Rights R~rvcd. M ay not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that any s uppre-Ssed content does not materially affect the overnlllearning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
Getting to Know
Microsoft Office Versions
Cengage is proud to bring you the next edition of Microsoft Office. This
edition was designed to provide a robust learning experience that is not
dependent upon a specific version of Office.
Microsoft supports several versions of Office:
• Office 365: A cloud-based subscription service that delivers
Microsoft's most up-to-date, feature-rich, modern productivity tools
direct to your device. There are variations of Office 365 for business,
educational, and personal use. Office 365 offers extra online storage
and cloud-connected features, as well as updates with the latest
features, fi xes, and security updates.
• Office 2019: Microsoft's "on-premises" version of the Office apps,
available for both PCs and Macs, offered as a static, one-time
purchase and outside of the subscription model.
• Office Online: A free, simplified version of Office web applications
(Word, Excel, PowerPoint, and OneNote) that facilitates creating and
editing files collaboratively.
Office 365 (the subscription model) and Office 2019 (the one-time pur-
chase model) had only slight differences between them at the time this
content was developed. Over time, Office 365's cloud interface will con-
tinuously update, offering new application features and functions, while
Office 2019 will remain static. Therefore, your onscreen experience may
differ from what you see in this product. For example, the more advanced
features and functionalities covered in this product may not be available
in Office Online or may have updated from what you see in Office 2019.
For more information on the differences between Office 365, Office 2019,
and Office Online, please visit the Microsoft Support site.
Cengage is committed to providing high-quality learning solutions for
you to gain the knowledge and skills that will empower you throughout
your educational and professional careers.
Thank you for using our product, and we look forward to exploring the
future of Microsoft Office with you!
IMPORTANT: To receive full credit for your Textbook Project, you must
complete the activity using the Start file you downloaded from SAM
or MindTap.
Using SAM Projects and Textbook Projects ~
Copyright 2020 Ccn,gagc Learning. All Rights R~rvcd. May not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that any suppre-Ssed content does not materially affect the overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time if sutlrequent rights restrictions require it.
Copyright 2020 Ctngagc Ltaming. All Rights Reserved. May not bt copitd. 5C3nncd. or duplicated, in whole or in part. Due to cltctronic rights. some third party conttnt may be ~upprcssed frotllthc cBook and/or cChaptcr{~).
Editorial review has deemed that any suppressed content does not materially affect the O\'e ralllearning experience. Cengage Learning reserves the right to remove additiooal cootent at any time if subsequent rights restrictions require it.
MODULE 1
Creating a Database ~
OBJECTIVES
Session 1.1 Tracking Patien t, Visit, and Billing Data
u
U
• Define basic database
concepts and terms <(
Case I Lakewood Community Health Services
• Start and exit Access
• Identify the Mic rosoft Access
w indow and Backstage view Lakewood Community Health Services, a nonprofit health clinic
• Create a b lank database
located in the greater Atlanta, Georgia area, provides a range of
• Create and save a table in
medical services to patients of all ages. The clinic specializes in
Datasheet v iew and Design view
• Add fields to a table in Datasheet chronic disease management, cardiac care, and geriatrics. Donna
view and Design view Taylor, the office manager for Lakewood Community Health
• Set a table's primary key in Services, oversees a small staff and is responsible for maintaining
Design view records for the clinic's patients.
Session 1.2 In order to best manage the clinic, Donna and her staff rely on
• Open an Access database electronic medical records for patient information, bi lling, inventory
• O pen a tabl e using the control, purchasing, and accounts payable. Several months ago,
Navigation Pane the clinic upgraded to Microsoft Access 2019 (or simply Access),
• Copy and paste records from a computer program used to enter, maintain, and retrieve related
another Access database
data in a format known as a database. Donna and her staff want to
• N avigate a table datasheet and
use Access to store information about patients, billing, vendors, and
enter records
• Create and navigate a simple products. She asks for your help in creating the necessary Access
query database.
• Create and navigate a simple
form
• Create, prev iew, navigate, and
print a simple report
• Use Help in Access
• Identify how to compact, back
up, and restore a database
AC 1-1
Copyright 2020 Ccn,gagc Learning. All Rights R~rvcd. M ay not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that a ny s uppre-Ssed content does not materially affect the overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
AC 1-2 Access I Mo dule 1 Creating a Database
8 ; Tab I~ Tools
File Home Create External Data Database Tools Help Fields Table p
The Shutter Bar Open/Close AB 12 ~ ~ Date&Time
r-§: /x
Button allows you to close 0 V~o
X
and open the Navigation View Short Number Currency
Pane; you might want to Text WJ More Fields •
close the pane so that you V1ews Add & ~l~t~-+----------, Properties
have more room on the
screen to view the object's
contents.
IAll Access Obje ... ~ « 1J:J ~ID • Cltek to Add •
Datash~~t View
------'-' Record. 14 1 of 1 Search
Copyright 2020 Cc ngage Learning . All Rights R~rvcd. May not be copied, scanned, or duplicated. in whole or in pan. Due to electronic right~. some third party content may be ~upprcssed frot11the cBook and/or cChaptcr{.s).
Editorial review has deemed that any s uppre-Ssed content does not materially affect the overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time if s ubsequent rights restrictions require it.
Module 1 Creating a Database I Access AC 1-3
Copyright 2020 Ccn,gage Learning. All Rights R~rvcd. May not be copied, scanned, or duplicated. in whole or in pan. Due to electronic right~. some third party content may be ~upprcssed frot11the cBook and/or cChaptcr{.s).
Editorial review has deemed that any suppre-Ssed content does not materially affect the overnlllearning experience. Cengage Learning reserves the right to remove additiooal content at any time if subsequent rights restrictions require it.
AC 1-4 Access I Module 1 Creating a Database
Organizing Data
Data is a valuable resource to any bu siness. At Lakew ood Community Health Servi ces,
for example, important data includes the patients' names and addresses, visit dates,
and billing information. Organizing, storing, maintaining, retrieving, and sorting this
type of data are critica l activities that enable a bu siness to find and use information
effectively. Before sto ring data on a computer, however, you must organize the data.
Your first step in organizing data is to identify the individual fields. A field is a single
characteri stic or attribute of a person, place, object, event, or idea. For example, some of
the many fields that Lakewood Community Health Services tracks are the patient ID, first
name, last name, address, phone number, visit date, reason for visit, and invoice amount.
Next, you group rel ated fields together into tables. A table is a col lection of fields
that describes a person, place, object, event, or idea. Figure 1- 1 shows an example of
a Patient table that contains the following four fields: PatientiD, FirstName, LastName,
and Phone. Each field is a column in the table, w ith the field name displayed as the
co lumn heading.
l' fields )
~Patient Table ~ ~ ~
~
The specific content of a fi eld is called the field value. In Fi gure 1- 1, the first set of
field values for PatientiD, FirstName, LastName, and Phone are, respectively: 13264,
Alex, Olsen, and 404-555-91 32. This set of field values is called a record. In the
Patient table, the data for each patient is stored as a separate record. Figure 1- 1 show s
six records; each row of field values in the table is a record.
Copyright 2020 Ccn,gagc Learning. All Rights R~rvcd. M ay not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that a ny s uppre-Ssed content does not materially affect the overnlllearning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
Module 1 Creating a Database I Access AC 1-5
In the sample database shown in Figure 1-2, each record in the Patient table has a
field named Pati entiD, which is also a field in the Visit table. For example, Jim Williams
is the fifth patient in the Patient table and has a PatientiD f ield value of 13290. This
same PatientiD field va lue, 13290, appears in two records in the Visit table. Therefore,
Jim W il liams is the patient that was seen at th ese two visits.
( common field
Visit table
( foreign key )
two visits for
Jim Williams
J
_____,. VisitiD PatientiD
+ VisitDat e Reason
1459 13276 11 /3/2020 Asthma
1483 13264 12/ 1/ 2020 Influenza
1509 13273 1/ 7/ 2021 Annual wellness visit
1565
1567
13290
13283
2/24/2021
2/ 26/ 2021
Laceration of right calf
Annual wellness visit
I
1575 13290 3/10/2021 Laceration follow-up I~
1596 13299 3/24/ 2021 Pneumonia
Each 10 va lue in the Patient tab le must be unique so that you can distinguish one
patient from another. Th ese unique PatientiD values also identify each patient's specific
visits in the Visit table. The PatientiD field is referred to as the primary key of the Patient
table. A primary key is a f ield, or a collection of fields, w hose va lues uniquely identify
each record in a tab le. No two records can contain the same value for the primary
key field. In the Visit table, the Vi sitiD field is the primary key because Lakewood
Community Health Services assigns each visit a unique identification number.
When you include the primary key from one table as a field in a second table to
fo rm a relationship between the two tables, it is ca l led a foreign key in the second
table, as shown in Figure 1-2 . For example, PatientiD is the primary key in the Patient
table and a foreign key in the Visit table.
The PatientiD field must have the same characteristics in both tables. Although the
primary key PatientiD contains unique values in the Patient table, the same f ield as a
foreign key in the Visit table does not necessarily contain unique values. The PatientiD
value 13290, for example, appears two times in the Visit table because Jim Williams
made two vi sits to the clinic.
Each foreign key va lue, however, must match one of the field values for the primary
key in the other table. In the example shown in Fi gure 1-2, each PatientiD value in th e
Visit table must match a Patienti D value in the Patient table. The two tables are related,
enabling users to connect the facts about pat ients w ith the facts about their visits to the
clinic.
Copyright 2020 Ccn,gagc Learning. All Rights R~rvcd. May not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that any s uppre-Ssed content does not materially affect the overnlllearning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
AC 1-6 Access I Mod ule 1 Creating a Database
-"-'
::I: When you create a database, you must create separate tables that contain only
C) fields that are directly related to each other. For example, in the Lakewood
database, the patient and visit data should not be stored in the same table because
z doing so would make the data difficult to update and prone to errors. Consider
Jim W illiams and his visits to the clinic, and assume that he has many more than
just two visits. If all the patient and visit data was stored in the same table, so that
each record (row) contained all t he information ab out each visit and the p atient, the
patient data would appear multiple t imes in the table. This causes problems when
the data changes. For example, if the phone number for Jim Williams changed, you
would have to upd at e the multiple occurrences of the pho ne number through o ut
the table. Not only would this be time-consuming, it would increase the likelihood
of errors or inconsistent data.
storage
display ~
query int eract wit h
results the database
Copyright 2020 Ccn,gagc Learning. All Rights R~rvcd. May not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that any suppre-Ssed content does not materially affect the overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time if sutlrequent rights restrictions require it.
Module 1 Creating a Database I Access AC 1-7
To start Access:
t 1. On the Windows taskbar, click the Start button EEJ. The Start menu opens.
t 2. On the Start menu, scroll down the list of apps, and then click Access.
Access starts and d isplays the Recent screen in Backstage view. See
Figure 1-4.
Copyright 2020 Ccn,gagc Learning. All Rights R~f'\·cd. May not be copied, scanned, or duplicated. in whole or in part. Due to electronic rights. some third party content may be suppressed frot11thc cBook and/or cChaptcr{li).
Editorial review has deemed that any suppre-Ssed content does not materially affect the O\'ernlllearning experience. Cengag.e Learning reserves the right to remove additiooal content at any time if subsequent rights restrictions require it.
AC 1-8 Access I Module 1 Creating a Database
-- _ ....
--
When yo u start Access, the f irst screen that appears is Backstage view, wh ich is the
starting place for your work in Access. Backstage view contains commands that allow
you to manage Access files and options. The Recent screen in Backstage view provides
options for you to create a new database or open an existing database. To create a new
database that does not contain any data or objects, you use the Blank database option.
If the database you need to create contains objects that match those found in common
databases, such as databases that store data about contacts or tasks, you can use one
of the templates provided w ith Access. A template is a predesigned database that
inc ludes professionally designed tab les, reports, and other database objects that can
make it quick and easy for you to create a database. You can also search for a template
onl ine using the Search for online templates box.
In this case, the temp lates provided do not match Donna's needs fo r the c linic's
database, so you need to create a new, blank database from scratch.
Copyright 2020 Ccn,gagc Lcamin,g. All Rights R~f'\·cd. May not be copied, scanned, or duplicated. in whole or in part. Due to electronic rights. some third party content may be suppressed frot11thc cBook and/or cChaptcr{li).
Editorial review has deemed that any s uppressed content does not materially affect the O\'ernlllearning experience. Cengag.e Learning reserves the right to remove additiooal content at any time if subsequent rights restrictions require it.
Module 1 Creating a Database I Access AC 1-9
Be sure to type Lakewood t 3. In the File Name box, type Lakewood to replace the selected database
or you'll create a database
name provided by Access, Database1. Next you need to specify the location
named Database1.
for the fi le.
t 4. Click the Browse button D
to the right of the File Name box. The File New
Database dialog box opens.
t 5. Navigate to the drive and folder where you are storing your files, as specified
by your instructor.
t 6. Make sure the Save as type box displays "Microsoft Access 2007-2016
Databases."
Trouble? If your computer is set up to show file name extensions, you will
see the Access file name extension " .accdb" in the File name box.
~·
7. Click OK. You return to the Blank database screen, and the File Name box
If you don't type the now shows the name Lakewood.accdb. The filename extension ".accdb"
filename extension, Access identifies the file as an Access 2007-2016 database.
adds it automatically.
8. Click Create. Access creates the new database, saves it to the specified
location, and then opens an empty table named Table1.
Trouble? If you see only ribbon tab names and no buttons, click the Home
tab to expand the ribbon, and then in the lower-right corner of the ribbon,
click the Pin th is pane button to pin the ribbon. B
Refer back to the Session 1.1 Vi sual Overview and spend some time becoming
famil iar w ith the components of the Access w indow.
--
:x: Access 2019 uses the .accdb file extension, which is the same fi le extension used
"'z
V)
for databases created with Microsoft Access 2007, 2010, 2013, and 2016. To ensure
compatibility between these earlier versions and the Access 2019 software, new
databases created using Access 2019 have the same file extension and file format as
Access 2007, Access 2010, Access 2013, and Access 2016 databases.
Copyright 2020 Ccn,gagc Learning . All Rights R~rvcd. M ay not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that a ny s uppre-Ssed content does not materially affect the overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
AC 1-10 Access I Module 1 Creating a Database
The figures in this text show the standard Mouse Mode display, and the
instructions assume you are using a mouse to click and select options, so
you'll switch back to Mouse Mode.
Trouble? If you are using a touch device and want to remain in Touch Mode,
skip Steps 5 and 6.
t 5. On the Quick Access Toolbar, click the Touch/Mouse Mode button and EJI,
then click Mouse. The ribbon returns to the standard display, as shown in the
Session 1.1 Visual Overview.
t 6. On the Quick Access Toolbar, click the Customize Quick Access Toolbar
button 11.
and then click Touch/Mouse Mode to deselect it. The Touch/
Mouse Mode button is removed from the Quick Access Toolbar.
Copyright 2020 Ccn,gagc Learning . All Rights R~rvcd. M ay not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that a ny s uppre-Ssed content does not materially affect the overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
Module 1 Creating a Database I Access AC 1-11
For Lakewood Community Health Services, Donna needs to track information about
each patient visit at the clinic. She asks you to create the Visit table according to the
plan shown in Figure 1-6.
field Purpose
VisitiD Unique number assigned to each visit; will serve as the table's primary key
PatientiD Unique number assigned to each patient; common field that will be a foreign
key to connect to the Patient table
VisitDate Date on which the patient visited the clinic
Reason Reason/diagnosis for the patient visit
Walkln Whether the patient visit was a walk-in or scheduled appointment
As shown in Donna's plan, she wants to store data about visits in five fields,
including fields to contain the date of each visit, the reason for the visit, and if the visit
was a walk-in or scheduled appointment. These are the most important aspects of a visit
and, therefore, must be tracked. Also, notice that the VisitiD field w ill be the primary
key for the table; each visit at Lakewood Community Health Services is assigned
a unique number, so this field is the logica l choice for the primary key. Finally, the
PatientiD field is needed in the Visit table as a foreign key to connect the information
about visits to patients. The data about patients and their invoices will be stored in
separate tables, which you w il l create later.
Notice the name of each field in Figure 1-6. You need to name each field, table, and
object in an Access database.
Copyright 2020 Ccn,gagc Learning. All Rights R~rvcd. May not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that any s uppre-Ssed content does not materially affect the overnlllearning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
AC 1-12 Access I Module 1 Creating a Database
Copyright 2020 Ccn,gagc Lcamin,g. All Rights R~f'\·cd. May not be copied, scanned, or duplicated. in whole or in part. Due to electronic rights . some third party content may be suppressed frot11 thc c Book and/or cChaptcr{li).
Editorial review has deemed that a ny s uppressed conte nt does not mate rially a ffec t the O\'ernlllearning experience. Cengag.e Learning reserves the right to remove additiooal content at any time if s ubsequent rights restrictions require it.
Module 1 Creating a Database I Access AC 1-13
Not ice that the Table Tools Fields tab is active on the ribbon . This is an example of
a contextual tab, which is a tab that appears and provides options for working with a
specific object that is selected-in this case, the table yo u are creating. As you work
w ith other objects in the database, other contextual tabs wi ll appear with commands
and options related to each selected object.
You have renamed th e default primary key field, ID, to VisitiD. However, the VisitiD
field still retains the characteristics of the ID f ield, including its data type. Your next task
is to change the data type of th is f ield .
Copyright 2020 Ccn,gagc Learning. All Rights R~rvcd. May not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that any suppre-Ssed content does not materially affect the overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time if sutlrequent rights restrictions require it.
AC 1-14 Access I Mod ule 1 Creating a Database
Note the Unique check box in the Field Validation group. This check box is
selected because the VisitiD field assumed the characteristics of the default
primary key field, ID, including the fact that each value in the field must be
unique. Because this check box is selected, no two records in the Visit table
will be allowed to have the same value in the VisitiD f ield.
With the VisitiD field created and established as the primary key, you can now enter
the rest of the fields in the V isit table.
Copyright 2020 Ccn,gagc Lcamin,g. All Rights R~f'\·cd. May not be copied, scanned, or duplicated. in whole or in part. Due to electronic rights. some third party content may be suppressed frot11thc cBook and/or cChaptcr{li).
Editorial review has deemed that a ny suppressed content does not materially affect the O\'ernll learning experience. Cengag.e Learning reserves the right to remove additiooal content at any time if s ubsequent rights restrictions require it.
Module 1 Creating a Database I Access AC 1-15
The text "Field1" is selected, so you can simply type the new field name to
replace it.
2. Type PatientiD. Access adds the second field to the table. Next, you'll add
the VisitDate field. Because this field will contain date values, you'l l add a
f ield with the Date/Time data type, which allows field values in a variety of
date and time formats.
3. In the Add & Delete group, click the Date & Time button. Access adds a
third field to the table, this t ime with the Date!Time data type.
4. Type VisitDate to replace the selected name "Field1." The fourth field in
the Visit table is the Reason field, which will contain brief descriptions of the
reason for the visit to the clinic. You'll add another Short Text field-this time
using the Click to Add column.
5. Click the Click to Add column heading. Access d isplays a list of available
data types for the new field.
6. Click Short Text in the list. Access adds a fourth f ield to the table.
7. Type Reason to replace the high lighted name "Field1," and then press
ENTER. The Click to Add column becomes active and displays the list of
field data types.
The fifth and fina l fie ld in the Visit table is the Walkln fie ld, which will indicate
whether the patient had a schedu led appointment. The Yes/No data type is
suitable for this field because it defines fields that store values representing
one of two options-true/false, yes/no, or on/off.
~·
8. Click Yes/No in the list, and then type Walkln to replace the highlighted
You can also type the name "Field1."
first letter of a data type
to select it and close the
Trouble? If you pressed TAB or ENTER after typing the Wa lkln field name,
Click to Add list. press ESC to close the Click t o Add list.
9. Click in the row below the VisitiD column heading. You have entered all five
fields for the Visit table. See Figure 1-10.
Copyright 2020 Ccn,gagc Learning. All Rights R~f'\·cd. May not be copied, scanned, or duplicated. in whole or in part. Due to electronic rights. some third party content may be suppressed frot11thc cBook and/or cChaptcr{li).
Editorial review has deemed that any suppre-Ssed content does not materially affect the O\'ernlllearning experience. Cengag.e Learning reserves the right to remove additiooal content at any time if subsequent rights restrictions require it.
AC 1-16 Access I Module 1 Creating a Database
The table contains three Short Text fields (VisitiD, PatientiD, and Reason), one
Date/Time field (VisitDate), and one Yes/No field (Walkln). You'll learn more
about field data types in the next module.
As noted earlier, Datasheet view shows a table's contents in rows (records) and
columns (fields). Each column is headed by a field name inside a field selector, and
each row has a record selector to its left (see Figure 1- 10). Cl icking a field selector or
a record selector selects that entire column or row (respectively), which you then can
manipulate. A field selector is also called a column selector, and a record selector is
also ca lled a row selector.
Saving a Table
w • Make sure the table you want to save is open.
u
zw • On the Quick Access Toolbar, click the Save button. The Save As dialog box opens.
0::: • In the Table Name box, type the name for the table.
w • Click OK.
u.
w
0:::
According to Donna's plan, you need to save the table with the name "Visit."
Copyright 2020 Ccn,gagc Lcamin,g. All Rights R~f'\·cd. May not be copied, scanned, or duplicated. in whole or in part. Due to electronic rights . some third party content may be suppressed frot11thc c Book and/or cChaptcr{li).
Editorial review has deemed that any suppressed content does not materially affect the O\'ernlllearning experience. Cengag.e Learning reserves the right to remove additiooal content at any time if s ubsequent rights restrictions require it.
Module 1 Creating a Database I Access AC 1-17
t 2. With the default name Table1 selected in the Table Name box, type V isit and
then click OK. The tab for the table now displays the name "Visit," and the
Visit table design is saved in the Lakewood database.
t 3. Click the Close 'Visit' button ~ on the object tab (see Figure 1-10 for the
location of this button). The Visit table closes, and the main portion of the
Access window is now blank because no database object is currently open.
The Lakewood database file is stil l open, as indicated by the filename in the
Access window title bar.
table
You' ll use Donna's design as a guide for creati ng the Billing table in the Lakewood
database.
Defining Fields
When you fi rst create a table in Design view, the insertion point is located in the first
row's Field Name box, ready for you to begin defining the first field in the table. You
enter values for the Field Name, Data Type, and Descripti on field properties (optional),
and then select values for all other f ield properties in the Field Properties pane. These
other properties wi ll appear w hen you move to the first row's Data Type box.
Copyright 2020 Ccn,gagc Learning. All Rights R~rvcd. May not be copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cChaptcr{s).
Editorial review has deemed that any suppre-Ssed conte nt does not materially affect the overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time if sutlrequent rights restrictions require it.
AC 1-18 Access I Module 1 Creating a Database
The f irst f ield you need to define is the lnvoiceNum field. Thi s field wil l be the
primary key for the Bi lling table. Each invoice at Lakewood Community Health Services
is assigned a specific five-d igit number. Although the lnvoiceNum field w ill contain
these number values, the numbers will never be used in calculati ons; therefore, you' ll
assign the ShortText data type to thi s field. Any time a field contains number values that
w ill not be used in calculations- such as phone numbers, postal codes, and so on- you
should use the Short Text data type instead of the Number data type.
·-.-__
Properties pane
.....
-...--. ....
:_ .....,.
.._..
-
..."''" } default property values
awu..,....,...-. .. ,.. .,..,..
.,...,.,, c.. . . . . . . ,... "''", ....
-eft-·"""'
......_..,,.=-
:"::.'-"- :; -+--....l.......l for a Short Text field
:s---......
~--------------------------------------------------------------~~
The right side of the Field Properties pane now provides an explanation for
the current property, Data Type.
Copyright 2020 Ccn,gagc Lcamin,g. All Rights R~f'\·cd. May not be copied, scanned, or duplicated. in whole or in part. Due to electronic rights. some third party content may be suppressed frot11thc cBook and/or cChaptcr{li).
Editorial review has deemed that any suppressed content does not materially affect the O\'ernll learnin,g experience. Cen,gag.e Learning reserves the right to remove additiooal cootent at any time if subsequent rights restrictions require it.
Module 1 Creating a Database I Access AC 1-19
Trouble? If you make a typing error, you can correct it by clicking to position
the insertion point, and then using either BACKSPACE to delete characters to
the left of the insertion point or DELETE to delete characters to the rig ht of
the insertion point. Then type the correct text.
Because the lnvoiceNum field values will not be used in calculations, you will
accept the default Short Text data type for the field.
t 2. Press TAB to accept Short Text as the data type and to advance to the
Description (Optional) box.
Next you'll enter the Description property value as " Primary key." The va lue
you enter for the Description property will appear on the status bar when
you view the table datasheet. N ote that specifying "Primary key" for the
Description property does not establish the current field as the primary key;
you use a button on the ribbon to specify the primary key in Design view,
which you will do later in this session.
~-
3. Type Primary key in the Description (Optional) box and press ENTER.
You can also use TAB to
At this point , you have entered the first field (lnvoiceNum) into the table and
advance to the second
are ready to enter the remaining fields into the table.
Donna's Bi ll ing table design (Figure 1- 11) shows Visit iD as the second field.
Because Donna and other staff members need to relate information about i nvoices to
the visit data in the Visit table, the Bi lling table must include the VisitiD field, which is
the Visit table's primary key. Recall that when you include the primary key from one
table as a field in a second tab le to connect the two tables, the field is a foreign key in
the second tab le.
Copyright 2020 Ccn,gagc Learning. All Rights R~f'\·cd. May not be copied, scanned, or duplicated. in whole or in part. Due to electronic rights . some third party content may be suppressed frot11thc cBook and/or cChaptcr{li).
Editorial review has deemed that any s uppre-Ssed content does not materially affect the O\'ernlllearning experience. Cengag.e Learning reserves the right to remove additiooal content at any time if s ubsequent rights restrictions require it.
Another random document with
no related content on Scribd:
In this story of Diamond Harter, her disastrous attempt at
marriage, and her subsequent life in the small English
village which half resentfully received her, Mrs. Delafield
adds a new and perhaps the finest novel to her already
distinguished list.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must, at
no additional cost, fee or expense to the user, provide a copy, a
means of exporting a copy, or a means of obtaining a copy upon
request, of the work in its original “Plain Vanilla ASCII” or other
form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.