Download as pdf or txt
Download as pdf or txt
You are on page 1of 69

New Perspectives Microsoft Office 365

& Access 2019 Comprehensive 1st


Edition Mark Shellman
Visit to download the full and correct content document:
https://ebookmass.com/product/new-perspectives-microsoft-office-365-access-2019-c
omprehensive-1st-edition-mark-shellman/
More products digital (pdf, epub, mobi) instant
download maybe you interests ...

(eBook PDF) New Perspectives Microsoft Office 365 &


Access 2019 Comprehensive

https://ebookmass.com/product/ebook-pdf-new-perspectives-
microsoft-office-365-access-2019-comprehensive/

eTextbook 978-1305880139 New Perspectives Microsoft


Office 365 & Access 2016: Comprehensive

https://ebookmass.com/product/etextbook-978-1305880139-new-
perspectives-microsoft-office-365-access-2016-comprehensive/

New Perspectives Microsoft Office 365 & Office 2019


Introductory 2019th Edition Patrick Carey

https://ebookmass.com/product/new-perspectives-microsoft-
office-365-office-2019-introductory-2019th-edition-patrick-carey/

Microsoft Office 365 & Outlook 2019 : comprehensive


Corinne Hoisington

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/

eTextbook 978-1305880412 New Perspectives Microsoft


Office 365 & Excel 2016: Intermediate

https://ebookmass.com/product/etextbook-978-1305880412-new-
perspectives-microsoft-office-365-excel-2016-intermediate/

Shelly Cashman Series Microsoft Office 365 & Excel 2019


Comprehensive (MindTap Course List) 1st Edition Steven
M. Freund

https://ebookmass.com/product/shelly-cashman-series-microsoft-
office-365-excel-2019-comprehensive-mindtap-course-list-1st-
edition-steven-m-freund/

Microsoft Office 365. Power Point 2021. Comprehensive.


1st Edition Jennifer T. Campbell

https://ebookmass.com/product/microsoft-office-365-power-
point-2021-comprehensive-1st-edition-jennifer-t-campbell/

Microsoft Office 365 : Office 2016, intermediate Freund

https://ebookmass.com/product/microsoft-
office-365-office-2016-intermediate-freund/
~- '# CENGAGE
·-
~""
,..,# CENGAGE
Australia · Brazil • Mexico · Singapore · United Kingdom · United States

Copyright 2020 Cc n,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.
This is an electronic version of the print textbook. Due to electronic rights restrictions,
some third party content may be suppressed. Editorial review has deemed that any suppressed
content does not materially affect the overall learning experience. The publisher reserves the right
to remove content from this title at any time if subsequent rights restrictions require it. For
valuable information on pricing, previous editions, changes to current editions, and alternate
formats, please visit www cengage com/highered to search by ISBN#, author, title, or keyword for
materials in your areas of interest.

Importa nt Notice: Media content refe renced within the product description or the product
text may not be available in the eBook version.

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.
New Perspectives Microsoft® Office 365® Access® © 2020, 2017 Cengage Learning, Inc.
2019 Comprehensive Un less otherwise noted, all content is© (engage.
Mark Shellman and Sasha Vodnik
ALL RIGHTS RESERVED. No part of this work covered by the copyright herein
SVP, GM Skills & Global Product Management: may be reproduced or distributed in any form or by any means, except as
permitted by U.S. copyright law, without the prior written permission of the
jonathan Lau
copyright owner.
Product Director: Lauren Murphy
Mac Users: If you're working through this product using a Mac, some of the
Product Assistant: Veronica Moreno-Nestojko steps may vary. Additional information for Mac users is included w ith the Data
Executive Director, Content Design: Marah files for this product.
Bellegarde Disclaimer: This text is intended for instructional purposes only; data is fictional
Director, Learning Design: Leigh Hefferon and does not belong to any real persons or companies.
Learning Designer: Courtney Cozzy Disclaimer: The material in this text was written using Microsoft Windows 10
Vice President, Marketing - Science, Technology, and Office 365 Professional Plus and was Quality Assurance tested before
and Math: jason R. Sakos the publication date. As Microsoft continually updates the Windows 10
operating system and Office 365, your software experience may vary slightly
Senior Marketing Director: Michele McTighe from what is presented in the printed text.
Marketing Manager: Timothy J. Cali Windows, Access, Excel, and PowerPoint are registered trademarks of Microsoft
Director, Content Delivery: Patty Stephan Corporation. Microsoft and the Office logo are either registered trademarks or
Content Manager: Christina Nyren trademarks of Microsoft Corporation in the United States and/or other countries.
This product is an independent publication and is neither affiliated with, nor
Digital Delivery Lead: jim Vaughey authorized, sponsored, or approved by, Microsoft Corporation.
Designer: Lizz Anderson
Some of the product names and company names used in this book have been
Text Designer: Althea Chen used for identification pu rposes only and may be trademarks o r registered
Cover Designer: Lizz Anderson trademarks of Microsoft Corporation in the United States and/or other
countries.
Cover Template Designer: Wing-lp Ngan,
Ink Design, Inc. Un less ot herwise noted, all clip art is courtesy of openclipart.org.

Cover Image: Krivosheev Vitaly/ShutterStock.com


For product information and technology assistance, contact us at
Cengage Customer & Sales Support, 1-800-354-9706 or
support.cengage.com.

For permission to use materia l from this text or product,


submit all requests online at www.cengage.com/permissions.

Library of Congress Control Number: 2019936891

Student Edition ISBN: 978-0-357-02575-8


*Looseleaf available as part of a digital bundle

Cengage
20 Channel Center Street
Boston, MA 02210
USA

Cengage is a leading provider of customized learning solutions with employees


residing in nearly 40 different countries and sales in more than 125 countries
around the world. Find your local representative at
www.cengage.com.

Cengage products are represented in Canada by Nelson Education, Ltd.

To learn more about Cengage platforms and services, visit


www.cengage.com.

To register or access your online learning solution or purchase materials for


your course, visit www.cengage.com.

Notice to the Reader


Publisher does not warrant or guarantee any of the products described herein or perform any independent analysis in connection
with any of the product information contained herein. Publisher does not assume, and expressly disclaims, any obligation to
obtain and include information other than that provided to it by the manufacturer. The reader is expressly warned to consider
and adopt all safety precautions that might be indicated by the activities described herein and to avoid all potential hazards. By
following the instructions contained herein, the reader willingly assumes all risks in connection with such instructions. The
publisher makes no representations or warranties of any kind, including but not limited to, the warranties of f itness for particular
purpose or merchantability, nor are any such representations implied w ith respect to the material set forth herein, and the
publisher takes no responsibility with respect to such material. The publisher shall not be liable for any special, consequential, or
exemplary damages resulting, in whole or part, from the readers' use of, or reliance upon, this material.

Printed in the United States of America


Print Number: 0 1 Print Year: 2019

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 overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
Microsoft Office 365 & Access 201 9, Compre he nsive iii

BRIEF CONTENTS
Getting to Know Microsoft Office Versions . ... . .... .. ... .. ...... .. ... . . OFF-1
Using SAM Projects and Textbook Projects ........ . ................... SAM-1

Module 1 Creating a Database .... . . . ........ . ... . . . .......... . . . . .AC 1-1


Tracking Patient, Visit, and Billing Data
Module 2 Building a Database and Defining Table Relationships ........... AC 2-1
Creating the Billing and Patient Tables

Module 3 Maintaining and Querying a Database ...... . ................ AC 3-1


Updating and Retrieving Information About Patients, Visits, and Invoices

Module 4 Creating Forms and Reports ..... . .. . . . . .. . ... . .. . . . . .. . ... AC 4-1


Using Forms and Reports to Display Patient and Visit Data

Module 5 Creating Advanced Queries and Enhancing Table Design ........ AC 5-1
Making the Clinic Database Easier to Use

Module 6 Using Form Tools and Creating Custom Forms . . . . ...... . . . ... .AC 6-1
Creating Forms for Lakewood Community Health Services
Module 7 Creating Custom Reports . . . . . ...... . . . . . . . . . ...... . . . . . . .AC 7-1
Creating Custom Reports for Lakewood Community Health Services

Module 8 Sharing, Integrating, and Analyzing Data ... . ... . ........ . ... .AC 8-1
Importing, Exporting, Linking, and Analyzing Data in the Clinic Database

Module 9 Using Action Queries and Advanced Table Relationships .... . .... AC 9-1
Enhancing User Interaction with the Health Database

Module 10 Automating Tasks with Macros ...........................AC 10-1


Creating a User Interface for the Health Database

Module 11 Using and Writing Visual Basic for Applications Code .........AC 11 -1
Creating VBA Code for the Health Database

Module 12 Managing and Securing a Database .......................AC 12-1


Administering the Health Database

Appendix A Relational Databases and


Database Design ................................................ AC A-1

Index IDX 1

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 mate rially affect the overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time if sutlrequent rights restrictions require it.
New Perspect ives Series

TABLE OF CONTENTS
Getting to Know Microsoft Office Versions ...... OFF-1 Creating a Simple Query ................. . . AC 1-39
Using SAM Projects and Textbook Projects ..... SAM-1 Creating a Simple Form .................... AC 1-42
Creating a Simple Report ..... . ........... . AC 1-45
ACCESS MODULES Printing a Report ......... . ...... . ...... AC 1-48

Module 1 Creating a Database Viewing Objects in the Navigation Pane ..... . . AC 1-48
Tracking Patient, Visit, and Billing Data . . ... AC 1-1 Using Microsoft Access Help ................ AC 1-49
Session 1.1 Visual Overview: Managing a Database . . ...... . ........... . AC 1-50
The Access Window .. . .. ........ . ..... .. . .. AC 1-2 Compacting and Repairing a Database ..... AC 1-51
Introduction to Database Concepts ... . ....... AC 1-4 Backing Up and Restoring a Database ..... . AC 1_52
Organizing Data · · · · · · · · · · · · · · · · · · · · · · · · AC 1-4 Session 1.2 Quick Check ................... AC 1-53
Databases and Relationships ........ . ..... AC 1-4 Review Assignments ...................... AC 1-54
Relational Database Management Systems ......AC 1-6 case Probl ems ... . ....................... AC 1-55
Starting Access and Creating a Database ....... AC 1-7
Module 2 Building a Database and Defining
Working in Touch Mode . ......... . ....... AC 1-9 Table Relationships
Creating a Table in Datasheet View ............ AC 1_11 Creating the Billing and Patient Tables . . . AC 2-1

Renaming the Default Primary Key Field .... AC 1-12 Session 2.1 Visual Overview:
Table Window in Design View .. . . . ......... . . AC 2-2
Changing the Data Type of the Default
Primary Key Field ... . . . ......... . ... . .. AC 1-13 Guidelines for Designing Databases ........... AC 2-4

Adding New Fields ..................... AC 1-14 Guidelines for Setting Field Properties ......... AC 2-6

Saving the Visit Table Structure .... . ...... AC 1-16 Naming Fields and Objects ............ . .. AC 2-6

Creating a Table in Design View .............. AC 1-17 Assigning Field Data Types ................ AC 2-6

Defining Fields ..... . . . ......... . .......AC 1-17 Setting Field Sizes ......... . ........... . . AC 2-7

Specifying the Primary Key ............... AC 1-21 Setting the Caption Property for Fields .. . ... AC 2-8

Renaming Fields in Design View ........... AC 1-22 Modifying a Table in Design View ............. AC 2-9

Saving the Billing Table Structure .......... AC 1-23 Saving the Table Structure ............... AC 2-15

Closing a Table and Exiting Access ... . .. . .... AC 1-24 Modifying the Structure of an Access Table .. . . AC 2-16

Session 1.1 Quick Check . . ................. AC 1-25 Moving a Field in Design View ............ AC 2-16
Adding a Field in Design View . .. ........ . AC 2-17
Session 1.2 Visual Overview:
The Create Tab Options . . . . ......... . ...... AC 1-26 Modifying Field Properties . . . . . . . . . . . . . . . . . AC 2-18

Entering Data into Tables ................... AC 1-28 Changing the Format Property
in Datasheet View ...................... AC 2-18
Copying Records from Another Access Database .. AC 1-34
Changing Properties in Design View ....... AC 2-20
Navigating a Datasheet .................... AC 1-38

. C~pyri,g_ht 2020 Ccn,gagc Learning. All Rights R~rvcd. May not ~copied, 5eanncd, or duplicated, in whole or in pan. Due to electronic rights. some third party content may be suppressed fronthc cBook and/or cCha tcr{s).
restrictio~
&htonal revJew has deemed that any s uppre-Ssed content does not mate natly affect the overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time jf s utlrequent rights require it.
Microsoft Office 365 & Access 2019, Comprehensive

Session 2.1 Quick Check ... . ............... AC 2-23 Finding Data in a Table ........ . .......... AC 3-7

Session 2.2 Visual Overview: Deleting Records........................ AC 3-8


Understanding Table Relationships ....... . . .. AC 2-24 Introduction to Queries ......... . .......... AC 3-10
Adding Records to a New Table . .... . .. . . . .. AC 2-26 Creating and Running a Query ... . . . . . ...... AC 3-11
Importing Data from an Excel Worksheet ...... AC 2-28 Updating Data Using a Query ............... AC 3-14
Creating a Table by Importing an Existing Creating a Multitable Query ................ AC 3-15
Table or Table Structure ....... . ...... .... .. AC 2-32 Sorting Data in a Query ............. . ...... AC 3-17
Adding Fields to a Table Using the Data Using an AutoFilter to Sort Data . . ........ AC 3-17
Type Gallery .. . ........ . .. . .......... . ... AC 2-34
Sorting on Multiple Fields in Design View .. . AC 3-18
Modifying the Structure of an Imported Table . . ...AC 2-36
Filtering Data ...... . ........... . ......... AC 3-22
Deleting Fields from a Table Structure . . . . .. AC 2-36
Session 3.1 Quick Check ..... . . .... .... . . .. AC 3-25
Renaming Fields in Design View ....... . ... AC 2-38
Session 3.2 Visual Overview:
Changing the Data Type for a Field
Selection Criteria in Queries .. . ............. AC 3-26
in Design View ......... . .......... . .... AC 2-38
Defining Record Selection Criteria for Queries . ... AC 3-28
Setting the Default Value Property
Specifying an Exact Match . . .. . .. .. .. . ... AC 3-28
for a Field .... . ........ .. . . .......... .. .. AC 2-41
Modifying a Query . ................... . AC 3-30
Adding Data to a Table by Importing
a Text File .... . ...................... . ... AC 2-43 Using a Comparison Operator to Match
a Range of Values ............ . ......... AC 3-33
Defining Table Relationships ...... .. . . ... .. . AC 2-45
Defining Multiple Selection Criteria for Queries .. AC 3-35
One-to-Many Relationships .......... . ... AC 2-46
The And Logical Operator ............... AC 3-36
Referential Integrity . ...... . . ... . . .... . . . AC 2-47
The Or Logical Operator................. AC 3-38
Defining a Relationship Between
Two Tables ... .... . .. .... ........ ... ... AC 2-47 Changing a Datasheet's Appearance ......... AC 3-40

Session 2.2 Quick Check .. . ............ . ... AC 2-51 Modifying the Font Size ................ . AC 3-40

Review Assignments . .. ..... ...... ..... ... AC 2-52 Changing the Alternate Row Color
in a Datasheet .... . ......... . ......... . AC 3-40
Case Problems .. ....... .. . .. .. . ... .. . .. .. AC 2-53
Creating a Calculated Field ....... . ..... . ... AC 3-42
Module 3 Maintaining and Querying a Database
Updating and Retrieving Information Formatting a Calculated Field ........... . AC 3-46
About Patients, Visits, and Invoices . ..... AC 3-1 Using Aggregate Functions . .. ...... ... .. . .. AC 3-47
Session 3.1 Visual Overview: Working wit h Aggregate Functions
Query Window in Design View ..... . . . . .. .... AC 3-2 Using the Total Row .. . . .. . . .... ... .. . .. AC 3-48
Updating a Database ...... . .......... . ..... AC 3-4 Creating Queries with Aggregate

Modifying Records . . ...... ... . .. .... .. . . AC 3-4 Functions .. . . ...... . .... . ..... .. . . . . .. AC 3-49

Hiding and Unhiding Fields................ AC 3-5 Using Record Group Calculations . .. ....... AC 3-52

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.
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

Session 6.1 Visual Overview: Adding a Subform to a Form ................ AC 6-50


Anchoring Controls ....... . ................ AC 6-2 Displaying a Subform's Calculated
Designing Forms ......... . ................ AC 6-4 Controls in the Main Form .................. AC 6-53

Changing a Lookup Field to a Adding Calculated Controls to a


Short Text field ......................... AC 6-4 Subform's Form Footer Section ........... AC 6-54

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

Selecting, Moving, and Modifying a Report in Layout View .......... . . AC 7-8

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

Creating a Custom Report . . . ............... AC 7-25 Session 8.2 Visual Overview:


Sorting and Grouping Data in a Report ..... AC 7-27 Tabbed Control with a Chart ............... AC 8-24

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

Understanding Events . . .. . .......... . .. AC 10-15 Testing a Procedure in the


Immediate Window ....................... AC 11-17
Understanding Submacros ......... . .... AC 10-16
Session 11.1 Quick Check.. . .... .. . . ....... .AC 11-19
Adding a Submacro ...................... AC 10-18
Adding a Command Button to a Form ....... AC 10-21 Session 11.2 Visual Overview:
Example of an Event Procedure . . .. . ....... AC 11-20
Attaching a Submacro to a
Command Button ......... . .............. AC 10-22 Understanding How an Event
Procedure Processes Commands .. . ........ AC 11-22
Session 10.1 Quick Check ................. AC 10-25
Adding an Event Procedure ..... . .. . ....... AC 11-24
Session 10.2 Visual Overview:
Compiling Modules . ................... AC 11-25
A Navigation Form ....................... AC 10-26
Designing a User Interface.. . .. ......... . .. AC 10_28 Testing an Event Procedure ... . ......... AC 11-26

Creating an Unbound Form ................ AC 10_28 Adding a Second Procedure to a


Class Module ....... . ........ . .. . ....... AC 11-27
Adding a List Box Control to a Form ...... . .. AC 10-30
Designing the Field Validation
Introduction to SOL ...................... AC 10-32
Procedure ........................... AC 11-27
Viewing a SOL Statement for a Query . . ... AC 10-33
Adding a Field Value Event Procedure ..... AC 11-30
Using a SOL Statement for a
List Box Control. ........ . ............. AC _ Adding an Event Procedure to Change the
10 35
Case of a Field Value ..................... AC 11-32
Creating Multiple Macros for a Form ........ AC 10-40
Hiding a Control and Changing a
Creating a Navigation Form . . .............. AC 10-45 Control's Color .......................... AC 11-33
Session 10.2 Quick Check .............. . .. AC 10-49

. 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

Module 12 Managing and Securing a Database Appendix A Relational Databases and


Administering the Health Database . . . . AC 12-1 Database Design ........................ AC A-1
Session 12.1 Visual Overview: Tables ................................... AC A-2
Multivalued Fields and Subqueries .... . ...... AC 12-2 Keys . . ......... . .......... . ........... . . AC A-3
Additional Filtering Options ........ . ....... AC 12-4 Relationships .... . .......... . . . ......... . . AC A-5
Filter By Form ......................... AC 12-5 One-to-Many Relationship ................ AC A-5
Saving a Filter as a Query ............ . ... AC 12-8 Many-to-Many Relationship ............... AC A-6
Creating a Subquery .... . ................. AC 12-11 One-to-One Relationship ....... . .. . .. . ... AC A-7
Using Multivalued Fields .. . ......... . .. .. .. AC 12-14 Entity Subtype ............ . ........... . . AC A-8
Session 12.1 Quick Check ................. AC 12-21 Entity-Relationship Diagrams .. .. .. .. . . .. . .... AC A-9
Session 12.2 Visual Overview: Integrity Constraints ......... . ............ AC A-11
Database Options . . .. ..... . . .. .. . ...... . AC 12-22 Dependencies and Determinants .... . . . .. . .. AC A-12
Creating an Attachment Field .............. AC 12-24 Anomalies....... . . . ......... . ......... . . AC A-14
Using an AutoNumber Field .. . . . . . ..... .. . AC 12-26 Normalization ............................ AC A-15
Saving an Access Database as a First Normal Form .. . ...... . . .. ........ . AC A-15
Previous Version . . ........... .. .. . ...... . AC 12-29 Second Normal Form ...... . ........... . AC A-17
Analyzing Database Performance Third Normal Form ........ . ........... . AC A-19
with the Performance Analyzer . . . ....... . . . AC 12-30
Natural, Artificial, and Surrogate Keys ......... AC A-21
Linking Tables between Databases .... .. .. . . AC 12-33
Microsoft Access Naming Conventions ........ AC A-25
Using the Database Splitter........ . ..... .. AC 12-38
Review Assignments ......... . ........... . AC A-28
Securing an Access Database ........ . ..... AC 12-42
Index .................................. IDX 1
Setting the Database Startup Options ....... AC 12-44

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!

Getting to Know Microsoft Office Versions ~


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 s utlrequent 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.
Using SAM Projects
and Textbook Projects
SAM and MindTap are interactive online platforms designed to transform
students into Microsoft Office and Computer Concepts masters. Practice
with simulated SAM Trainings and MindTap activities and actively apply
the skill s you learned live in Microsoft Word, Excel, PowerPoint, or Access.
Become a more productive student and use these skills throughout
your career.
If your instructor assigns SAM Projects:
1. Launch your SAM Project assignment from SAM or MindTap.
2. Click the links to download your Instructions file, Start file, and
Support files (when available).
3. Open the Instructions fi le and follow the step-by-step instructions.
4 . When you complete the project, upload your file to SAM or MindTap
for immediate feedback.
To use SAM Textbook Projects:
1. Launch your SAM Project assignment from SAM or MindTap.
2. Click the links to download your Start file and Support files
( when available).
3. Locate the module indicated in your book or eBook.
4 . Read the module and complete the project.

saTi'+ Open the Start f ile you downloaded.

saTi'+ Save, close, and up load your completed p roject to receive


immediate feed back.

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

STARTING DATA FILES

\t;;;;J- IM~dulel I Re~;ew I

Support_AC_1_Donna.accdb Support_AC_l _ Company.accdb

Support_AC_l _Records.accdb Support_AC_l _Residents.accdb

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

Session 1.1 Visual Overview:


The Quick Access Toolbar The Table Tools Fields tab
provides one-click access to provides options for adding,
commonly used commands, removing, and formatting
such as Save. the fields in a table.
~

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 •

T ables : I~* (New)l..___

CJ Ta ble1 -+---- Access assigns the -


default name ,-_..._ _ _ _____
"Table1" to the By default, The Click to
first new table you Access creates Add column
create. When you the ID field as provides another
save the table, you the primary key way for you to
can give it a more field for all new add new fields
meaningful name. tables. to a table.

The Add & Delete group


contains options for adding
different types of fields,
including Short Text and
Number, to a table.
--------'
The Navigation Pane lists all
the objects (tables, reports,
and so on) in the database; it
is the main control center for
opening and working with
database objects.

Datasheet view shows


the table's contents as
a datasheet.

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

The Access Window


You use the window
The Access window is the buttons to minimize,
program window that appears maximize, and close
when you create a new database the Access window.
or open an existing database.

If you are signed into your


Office account, your name
appears here. If not are not
L-----------~-1 signed in, the Sign in link
will appear here, and you
The ribbon provides the can click it to sign into your
}-ooll; .-----1 main Access commands Office account.
Vahdatlon
organized by task into
tabs and groups.
F1tld Vahdatlon J

The title bar displays the


name of the open file and
the program.

A datasheet displays the


table's contents in rows and
columns, similar to a table
that you create in a Word
document or an Excel
worksheet. Each row will be
The status bar provides information about a separate record in the
the program or open file, as well as buttons table, an each column wil l
for working with the file. At the far left, the contain the field values for
status bar indicates the current view, in this one field in the table.
case, Datasheet view.

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

Introduction to Database Concepts


Before you begin using Access to create the database for Donna, you need to
understand a few key terms and concepts associated with databases.

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.

Data organization for a table of patients

l' fields )
~Patient Table ~ ~ ~
~

PatientiD FirstName LastName Phone

13264 Alex Olsen 404-555-9132

13273 Sofia Garcia 470-555-3 126

13276 Claire Wilson 678-555-1247


ecords
13283 Harper Rowe 404-555-171 2

13290 Jim Williams 770-555-4910

13299 Terry Cruz 470-555-9982

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.

Databases and Relationships


A col lection of related tables is cal led a database, or a relational database. In this
module, you wil l create th e database for Lakewood Community Health Services, and
w ithin that database, yo u' ll crea te a table named Visit to store data about patient visits.
Laler on, you'll creale Lwo more Lables, named Palienl and Billing, Lo slore relaled
information about patients and th eir invoices.
As Donna and her staff use the database that you will create, they will need to
access information about patients and their visits. To obtain thi s information, you must
have a way to connect records in the Patient table to records in the Visit table. You
connect the records in the separate tab les through a common field that appears in both
tables.

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.

- i @ ! i $ 1 - Database relationship between tables for patients and visits


Patie nt t a ble
PatientiD FirstName Last Name Phone
~
13264 Alex O lsen 404-555-9132

13273 Sofia Garcia 470-555-3126

13276 Claire Wilson 678-555-1247

13283 Harper Rowe 404-555-1712

13290 Jim Wil liams 770-555-4910


( p rimary keys ) -
13299 Terry Cruz 470-555-9982

( 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

Storing Data in Separate Tables


1-

-"-'
::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.

Relational Database Management Systems


To ma nage its databases, a company uses a database management system. A database
management system (DBMS) is a software program that lets you create databases, and
then manipulate the data they contain. Most of today's database management systems,
including Access, are called relational database management systems. In a relational
database management system, data is organized as a collection of tables. As stated
earlier, a relationship between two tables in a relational DBMS is formed through a
common field.
A relational DBMS controls the storage of databases and faci litates the creation,
manipulation, and reporting of data, as illustrated in Figure 1-3 .

Relational database ent system

storage

store, retrieve, and protect data


computer memory
relational DBMS

display ~
query int eract wit h
results the database

user interface printer

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

Specifically, a relational DBMS provides the fol lowing functions:


• It allows you to create database structures conta ining fields, tab les, and table
relationsh ips.
• It lets you easi ly add new records, change field values in existing records, and delete
records.
• It contains a built-in query language, which lets you obtain immediate answers to the
questions (or queries) you ask about your data.
• It contains a built-in report generator, which lets you produce professional-looking,
formatted reports from your data.
• It protects databases through security, control, and recovery facilities.
An organization such as Lakewood Community Health Services benefits from a
relational DBMS because it allows users working in different groups to share the same
data. More than one user can enter data into a database, and more than one user can
retri eve and analyze data that other users have entered. For example, the database for
Lakewood Commun ity Health Services will contain only one copy of the Visit table,
and al l employees wil l use it to access visit information.
Finally, unlike other software programs, such as spreadsheet programs, a DBMS can
handle massive amounts of data and allows relationships among mu ltiple tables. Each
Access database, for example, can be up to two gigabytes in size, can contain up to
32,768 objects (tables, reports, and so on), and can have up to 255 people using the
database at the same time. For instructional purposes, the databases you w ill create and
work w ith throughout thi s text contain a relatively small number of records compared
to databases you wou ld encounter outside the classroom, which would likely contain
tables with very large numbers of records.

Starting Access and Creating a Database


Now that you've learned some database terms and concepts, you're ready to start
Access and create the Lakewood database for Donna.

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

Recent screen in view

option for creating a


new, blank database

a list of recently p 'tOOrName


opened databases -·~
• - - YN
might appear here

-- _ ....
--
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.

To create the new Lakewood database:


t 1. sa'ri'+ Make sure you have the Access starting Data Files on your computer.
Trouble? If you don't have the starting Data Files, you need to get them
before you can proceed. Your instructor will either give you the Data Files or
ask you to obtain them from a specified location (such as a network drive). If
you have any questions about the Data Files, see your instructor or technical
support person for assistance.
t 2. On the Recent screen, click Blank database (see Figure 1-4). The Blank
database screen opens.

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.

Understanding the Database File Type


1-

--
: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.

Working in Touch Mode


~If yo u are worki ng on a touch device, such as a tablet, you can switch to Touch Mode
~ in Access to make it easier for you to tap buttons on the ribbon and perform other
tap instead of click. touch actions. Your screens wi ll not match those shown in the book exactly, but th is
w il l not cau se any problems.
Note: The foll owing steps assume that yo u are using a mouse. If you are instead using
a touch devi ce, please read these steps but don't complete them, so that you remain
working i n Touch Mode.

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

To switch to Touch Mode:


t 1. On the Quick Access Toolbar, click the Customize Quick Access Toolbar
button II·
A menu opens listing buttons you can add to the Quick Access
Toolbar as well as other options for customizing the toolbar.
Trouble? If the Touch/Mouse Mode command on the menu has a checkmark
next to it, press ESC to close the menu, and then skip to Step 3.
t 2. Click Touch/Mouse Mode. The Quick Access Toolbar now contains the
Touch/Mouse Mode button EJI,
which you can use to switch between Mouse
Mode, the default display, and Touch Mode.
t 3. On the Quick Access Toolbar, click the Touch/Mouse Mode button EJI.
A menu opens with two commands: Mouse, which shows the ribbon in the
standard display and is optimized for use with the mouse; and Touch, which
provides more space between the buttons and commands on the ribbon and
is optimized for use with touch devices. The icon next to Mouse is shaded to
indicate that it is selected.
Trouble? If the icon next to Touch is shaded red, press ESC to close the
menu and skip to Step 5.
t 4. Click Touch. The display switches to Touch Mode with more space between
the commands and buttons on the ribbon. See Figure 1-5.

Touch/Mouse Mode ribbon includes more space


0 button on Quick around buttons and options
Access Toolbar

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

Creating a Table in Datasheet View


Tables contain all the data in a database and are the fundamental objects for your work
in Access. You can create a table in Access in d ifferent ways, including entering the
fields and records for the table directly in Datasheet view.

Creating a Table in Datasheet View


w • On the ribbon, click the Create tab.
u
zw • In the Tables group, click the Table button.
• Rename the default ID primary key field and change its data type, if necessary; or
0:::
w accept the default ID field with the Auto Number data type.
u.
w • On the Fields tab in the Add & Delete group, click the button for the type of field you
0::: want to add to the table (for example, click the Short Text button}, and then type the
field name; or, in the table datasheet, click the Click to Add column heading, click the
type of field you want to add from the list that opens, and then press TAB or ENTER
to move to the next column in the datasheet. Repeat this step to add all the neces-
sary fields to the table.
• In the first row below the field names, enter the value for each field in the first record,
pressing TAB or ENTER to move from one field to the next.
• After entering the value for the last field in the first record, press TAB or ENTER to
move to the next row, and then enter the values for the next record. Continue this
process until you have entered all the records for the table.
• On the Quick Access Tool bar, click the Save button, enter a name for the table, and
then click OK.

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.

Plan for the Visit table

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

Decision Making: Naming Fields in Access Tables


"'
:j One of the most important tasks in creating a table is deciding what names to specify for
~ the table's fields. Keep the following guidelines in mind when you assign field names:
\n • A field name can consist of up to 64 characters, including letters, numbers, spaces,
~ and special characters, except for the period (.). exclamation mark (!), grave accent('),
0.. and square brackets ([ ]).
• A field name cannot begin with a space.
• Capitalize the first letter of each word in a field name that combines multiple words,
for example VisitDate.
• Use concise field names that are easy to remember and reference and that won't take
up a lot of space in the table datasheet.
• Use standard abbreviations, such as Num for Number, Amt for Amount, and Oty for
Quantity, and use them consistently throughout the database. For example, if you use
Num for Number in one field name, do not use the number sign (#)for Number in
another.
• Give fields descriptive names so that you can easily identify them when you view or
edit records.
• Although Access supports the use of spaces in field names (and in other object
names), experienced database developers avoid using spaces because they can
cause errors when the objects are involved in programming tasks.
By spending time obtaining and analyzing information about the fields in a table, and
understanding the rules for naming fields, you can create a well-designed table that wi ll
be easy for others to use.

Renaming the Default Primary Key Field


As noted earlier, Access provides the 10 field as the default primary key fo r a new table
you create in Oatasheet view. Reca ll that a p rimary key is a field, or a col lection of
fie lds, whose va lues uniquely identify each record in a table. H owever, according to
Donna's plan, the VisitiO f ield should be the primary key for th e V isit table. You ' ll begin
by renaming the default 10 fie ld to create the Vis itiO field.

To rename the 10 field to the VisitiD field:


t 1. Right-click the ID column heading to open the shortcut menu, and then click
A shortcut menu opens Rename Field. The column heading ID is selected, so that whatever text you
when you right-dick type next will replace it.
an object and provides
options for working with t 2. Type VisitiD and then click the row below the heading. The column heading
that object. changes to VisitiD, and the insertion point moves to the row below the
heading. The insertion point is a flashing cursor that shows where text you
type will be inserted. In this case, it is hidden within the selected field va lue
(New). See Figure 1-7.
Trouble? If you make a m istake while typi ng the field name, use
BACKSPACE to delete characters to the left of the insertion point or use
D ELETE t o delete characters to the right of the insertion point. Then type the
correct text. To correct a field name by replacing it entirely, press ESC, and
then type the correct text.

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

ID field renamed to VisitiD

AutoN umber data type


'------'=-----1 assigned to the default
primary key field (I D)

VisitiD field name entered option for specifying


in the column heading the data type for a field

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.

Buttons and Labels on the Ribbon


Depending on the size of the monitor you are using and your screen resolution settings,
you might see more or fewer buttons on the ribbon, and you might not see labels
next to certain buttons. The screenshots in these modules were created using a screen
resolution setting of 1366 x 768 with the program window maximized. If you are using
a smaller monitor or a lower screen resolution, some buttons will appear only as icons,
with no labels next to them, because there is not enough room on the ribbon to display
the labels.

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 .

Changing the Data Type of the Default Primary Key Field


Notice the Formatting group on the Table Tools Fields tab. One of the options available
in this group is the Data Type option (see Fi gure 1-7). Each field in an Access tab le
must be assigned a data type. The data type determines what field values you can enter
for the field. In this case, the AutoN umber data type is displayed. Access assigns the
AutoN umber data type to the default ID primary key f ield because the AutoNumber
data type automatically inserts a unique number in this field for every record,
beginning w ith the number 1 for the first record, the number 2 for the second record,
and so on. Therefore, a field using the AutoN umber data type can serve as the primary
key for any table you create.
Visit numbers at Lakewood Community Health Services are specific, four-digit
numbers, so the AutoN umber data type is not appropriate for the VisitiD field, wh ich
is the primary key field in the table you are creating. A better choice is the Short Text
data type, wh ich allows field va lues containing letters, digits, and other characters, and
which is appropriate for identifying numbers, such as v isit numbers, that are never used
in ca lculations. So, Donna asks you to change the data type for the VisitiD field from
AutoN umber to Short Text.

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

To change the data type for the VisitiD field:


t 1. Make sure that the VisitiD column is selected. A column is selected when you
click a field value, in whi ch case the background color of the column heading
changes to orange (the default color) and the insertion point appears in the
f ield value. You can also click the column heading to select a column, in
which case the background color of both the column heading and the field
value changes (the default colors are gray and blue, respectively).
t 2. On the Table Tools Fields tab, in the Formatting group, click the Data Type
arrow, and then click Short Text. The VisitiD field is now a Short Text f ield.
See Figure 1-8.

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.

Adding New Fields


When you create a table in Datasheet view, you can use the options in the Add &
Delete group on the Table Tools Fields tab to add fields to your table. You can also use
the Click to Add column in the table datasheet to add new fields. (See Figure 1- 8.)
You' ll use both methods to add the four remaining fields to the Visit table. The next
field you need to add is the PatientiD field. Similar to the VisitiD field, the PatientiD
field wil l conta in numbers that will not be used in calculations, so it should be a Short
Text field.

To add the rest of the fields to the Visit table:


t 1. On the Table Tools Fields tab, in the Add & Delete group, click the Short
Text button. Access adds a new field named "Field1" to the right of the
VisitiD field. See Figure 1-9.

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

indicates the data


type of the new field

' - - - - - - - - - i default name highlighted


in the new field

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 the Visit Table Structure


As you find out later, the records you enter are immediately stored in the database
as soon as yo u enter them; however, the table's design- the field names and
characteristi cs of the fields themselves, plus any layout changes to the datasheet-are
not saved until you save the tabl e. When you save a new table for the f irst time, you
should give it a name that best identifies the information it contains. Like a field name,
a table name can contain up to 64 characters, inc lud ing spaces.

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."

To save, name, and close the Visit table:


1. On the Quick Access Toolbar, click the Save button I!J. The Save As dialog
box opens.
command in Backstage
view to save and name a
new 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 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.

Creating a Table in Design View


The Lakewood database also needs a table that w il l hold all of th e invoices generated
by each office visit. Donna has decided to cal l this new table the Billing table. You
created the structure for the Vi sit table in Datasheet view. An alternate method of
creating the structure of a table is by using Design view. You wi ll create the new Billing
table using Design view.
Creating a table in Design view involves entering the field names and defining the
properties for the fields, specifying a primary key for the table, and then saving the
table structure. Donna began documenting the design for the new Billing table by
listing each field's name, data type, and purpose, and w ill continue to refine the design.
See Figure 1- 11.

table

field Name Data Type Pu rpose


InvoiceNum Short Text Unique number assigned to ea ch invoice; will serve as
the table's primary key
Visit!O Short Text Unique number assigned to ea ch visit; common field that
will be a foreign key to connect to the Visit table
InvoiceAmount Currency Dollar amount of each invoice
InvoiceDate Date/Time Date the invoice was gen erated
Invoice Paid Yes/No Whether the invoice has been paid or not

You' ll use Donna's design as a guide for creati ng the Billing table in the Lakewood
database.

To begin creating the Billing table:


t 1. If the Navigation Pane is open, click the Shutter Bar Open/ Close Button ~
to close it.
t 2. On the ribbon, click the Create tab.
t 3. In the Tables group, click the Table Design button. A new table named
Table1 opens in Design view.

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

Defining a Field in Design View


w • In the Field Name box, type the name for the field, and then press TAB.
u
zw • Accept the default Short Text data type, or click the arrow and select a different data
a::: type for the f ield. Press TAB.
w • Enter an optional description for the field, if necessary.
u..
w • Use the Field Properties pane to type or select other field properties, as appropriate.
a:::

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.

To define the lnvoiceNum field:


t 1. Type lnvoiceNum in the first row's Field Name box, and then press TAB to
You can also p ress advance to the Data Type box. The default data type, Short Text, appears
ENTER to move from one highlighted in the Data Type box, which now also contains an arrow, and the
property to the next in the field properties for a Short Text field appear in the Field Properties pane. See
Table Design grid.
Figure 1-12.

Table window after entering the first field name

........,, . ,___ (-- ----- -


-- --·-- - -
-.....
~-
~
r'l
cu

clicking the arrow displays


a list of data types

_...,......,....__ _, identifies the Field

·-.-__
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.

lnvoiceNum field defined


~ ., . • w. ' !...._._, ............_ .J,., .... ·~~ . . . . . :.to. .,.,a;• ,I'J .......... ..

,. - "- -- -- ...., o..lan p,.. __ ,... ........


.._ =::. c r
.._.,-. c-o.. ..._ .........,..
r-,; -:
- --·-- ·-
~ Olp<t
-,I-... - --· - - ......,__

Sho rt Text data Description


type is selected pro perty e nt ere d

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.

To define the VisitiD field:


t 1. If the insertion point is not already positioned in the second row's Field
Name box, cl ick the second row's Field Name box. Once properly
positioned, type VisitiD in the box, and then press TAB to advance to the
Data Type box.

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.
AC 1-20 Access I Module 1 Creating a Database

t 2. Press TAB to accept Short Text as the field's data type. Because the VisitiD
field is a foreign key to the Visit table, you'll enter "Foreign key" in the
Description (Optional) box to help users of the database understand the
purpose of this field.
t 3. Type Foreign key in the Description (Optional) box and press ENTER.

The third field in the Billing table is the lnvoiceAmt field, wh ich w il l display the
The quickest way to move dollar amount of each invoice the clin ic sends to the patients. The Currency data type
back to the Table Design is the appropriate choice forth is field.
grid is to use the mouse.

To define the lnvoiceAmount field:


t 1. In the third row's Field Name box, type lnvoiceAmount and then press TAB
to advance to the Data Type box.
t 2. Click the Data Type arrow, click Currency in the list, and then press TAB to
advance to the Description (Optional) box.
The lnvoiceAmount field is not a primary key, nor does it have a relationship
with a field in another table, so you do not need to enter a description for
this field. If you've assigned a descriptive field name and the fie ld does not
fulfill a special function (such as primary key), you usually do not enter a va lue
for the optional Description property.
t 3. Press TAB to advance to the fourth row's Field Name box.

The fourth field in the Billing table is the lnvoiceDate field. This field w ill contain
the dates on wh ich invoices are generated for the cl inic's patients. You'l l define the
lnvoiceDate field using the Date!fime data type.

To define the lnvoiceDate field:


t 1. In the fourth row's Field Name box, type lnvoiceDate and then press TAB to
advance to the Data Type box.
You can select a value from the Data Type list as you did for the
lnvoiceAmount field. Alternately, you can type the property value in the box
or type just the first character of the property value.
t 2. Type d . The value in the fourth row's Data Type box changes to "date/Time,"
with t he letters "ate/Time" highl ighted. See Figure 1-14.

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 s ubsequent rights restrictions require it.
Module 1 Creating a Database I Access AC 1-21

a va lue for the Data

-Doll -- . . .
"'
£t-- - p ,,....,_,_ _ 4o

--
- O..t

r, i'"""1
.. '="- ~.:-.::.:.. ~ o,.:::..

-
-- L.. t:::.: m
._..~
-

t 3. Press TAB to advance to the Description (Optional) box. Note that Access
changes the value for the Data Type property to "Date/Time."
t 4. Because the lnvoiceDate field does not need a special description, press TAB.

The fifth, and final, field to be defined in the Bil ling table is lnvoicePaid. Thi s field
w i ll be a Yes/No field to indicate the payment status of each invoice record stored in
the Billing table. Recall that the Yes/N o data type defines fields that store true/false,
yes/no, and on/off field values. When you create a Yes/No f ield in a table, the default
Format property is set to Yes/No.

To define the lnvoicePaid field:


t 1. In the fifth row's Field Name box, type lnvoicePaid and t hen press TAB to
advance to the Data Type box.
t 2. Type y. Access completes the data type as "yes/No." Press TAB to select the
Yes/No data type and move to the Description (Optional) box.
t 3. Because the lnvoicePaid field does not need a special description, press TAB.

You've finished defining the fields for the Bill ing table. Next, you need to specify the
primary key fo r the table.

Specifying the Primary Key


As you learned previously, the primary key for a table uniquely identifies each record
in the tab le.

Specifying a Primary Key in Design View


w • Display the table in Design view.
u
zw • Click in the row for the f ield you've chosen to be the primary key to make it the active
0::
field. If the primary key will consi st of two or more fields, click the row selector for the
w first field, press and hold down CTRL, and then click the row selector for each addi-
u..
w t ional primary key field.
0:: • On the Table Tools Design tab in the Tools group, click the Primary Key button.

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-22 Access I Module 1 Creating a Database

According to Donna's design, you need to specify lnvoiceNum as the primary key
for the Bi lling table. You can do so while the table is in Design view.

To specify lnvoiceNum as the primary key:


1. Click in the row for the lnvoiceNum field to make it the current field.
2. On the Table Tools Design tab in the Tools group, click the Primary Key
The Primary Key button is button. The Primary Key button is highlighted and a key symbol appears in
a toggle; you can click it to the row selector for the first row, indicating that the lnvoiceNum field is the
remove the key symbol. table's primary key. See Figure 1-15.

1!:-f ., · • ._.,. .~ ,........._, ~ r',J...,.u''~~ •• a~,A. .....m• .,.• , .. ,u..

Primary Key -- - _.__


button

key symbol indicates


the table's primary key
- ..,
- ·- .....

L- ·
Renaming Fields in Design View
Donna has decided to rename the lnvoiceAmount field in the Billing table to
lnvoiceAmt. Since Amt is an appropriate abbreviation for Amount, this new name wi ll
be just as readable, yet a little shorter.

To rename a field in Design view:


1. Click to position the insertion point to the right of the word " lnvoiceAmount"
You can also select an in the third row's Field Name box, and then press BACKSPACE four times
entire field name and then to delete the letters "ount." The name ofthe fourth field is now lnvoiceAm.
type new text to replace it. Now add the fina l letter by pressing the letter t . The name of the new field is
now lnvoiceAmt as Donna wants it to be. See Figure 1-16.
t 2. Click in the row for the lnvoiceAmt field to make it the current field.

table after renamed field


'="' ., . • w... ... ,......._, ~ r .Jo.,._,..,~....__. .. ,..,t.Ao. .....w• .'tl •• ,,.,,~...

•• - "- - -

- -- --
t.loMJ~
~-

~-
-
,..
[J
~

-
P•~~--,...-

~ ........., .........,
c-o.
- · -......

·-
-...
Ot,od
....,_..

........_ -------------'""'=='~.leO!! -
• --
- _, ,Ul __----,:,"'-Ytrt
_,...., - - - - - - - - - - - - - - - - - - - - - , i
( renamed field )t----l•~ ::-:-"'
-:-Din-e•----:;;..~·:-------------------------~
_... .,..p.o

Copyright 2020 Cc n,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 a ny s uppre-Ssed conte nl does not male riatly affect lhe overnll learning experience. Cengage Learning reserves the righl lo remove additiooal cootent at any time if s utlrequent rights restriclions require it.
Module 1 Creating a Database I Access AC 1-23

Saving the Billing Table Structure


As w ith the Visit table, the last step in creating a table is to name the table and
save th e table's structure. When you save a table structure, the table is stored in the
database f ile (in thi s case, the Lakewood database file). After saving the table, you
can enter data into it. According to Donna's plan, you need to save th e table you've
defined as " Billing."

To save, name, and close the Billing table:


t 1. On the Quick Access Toolbar, click the Save button IIJ.The Save As dialog
box opens.
t 2. With t he default name Table1 selected in the Table Name box, type Billing,
and then click OK. The tab for the table now displays th e name "Billing," and
the Bi lling table design is saved in the Lakewood database.
t 3. Click the Close 'Billing' button ~ on the object tab. The Bi lling 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 still open,
as indicated by the filename in the Access window t it le bar.

You have now successfully created and saved the structures for the Visit and Bil li ng
tables; however, you have not yet added any data to these tables. You can view and
work with these objects in the Navigation Pane.

To view objects in the Lakewood database:


t 1. On the Navigation Pane, click the Shutter Bar Open/Close Button ~ to
open it. See Figure 1-17.

Visit and Billing tables (database JSola'•ed in the Navigation Pane


.., • a L-~ ~~ lA. • ..., ~· ...,_....,., . . . . rw.,'WI .~6'•'- ...- A. .....

flo - tr- ~- ._..._ .... />Ttl _ _ ,.._..,,.

_.. _
the Billing and Visit
- .... ''"""

tables are now saved in


the Lakewood 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 restriclions require it.
AC 1-24 Access I Module 1 Creating a Database

Closing a Table and Exiting Access


When you are finished working in an Access tab le, it's a good idea to close the table
so that you do not make unintended changes to the table data. You can close a table
by clicking its Close button on the object tab, as you did earlier. Or, if you want to
close the Access program as we ll, you can c lick the program's Close button. When you
do, any open tables are closed, the active database is closed, and you exit the Access
program.

To close any opened tables and exit Access:


1. Click the Close button II
on the program window title bar. Any opened
To close a database without tables would close, along with the Lakewood database, and then the Access
exiting Access, click the File program closes.
tab to display Backstage
view, and then click Close.

~ Saving a Database
~ Unlike the Save buttons in other Office programs, the Save button on the Quick Access
Toolbar in Access does not save the active document (database). Instead, you use the
Save button to save the design of an Access object, such as a table (as you saw earlier),
or to save data sheet format changes, such as resizing columns. Access does not have or
need a button or option you can use to save the active database.
Access saves changes to the active database automatically when you change or
add a record or close the database. If your database is stored on a removable storage
device, such as a USB drive, you should never remove the device while the database file
is open. If you do, Access will encounter problems when it tries to save the database,
which might damage the database. Make sure you close the database first before
removing the storage device.
It is possible to save a database with a different name. To do so, you would click
the File tab to open Backstage view, and then click the Save As option. You save the
database in the default database format unless you select a different format, so click the
Save As button to open the Save As dialog box. Enter the new name for the database,
choose the location for saving the file, and then click Save. The database is saved with a
new name and is stored in the specified location.

Now that you've become fami liar with database concepts and Access, and created
the Lakewood database and the structures for the Visit and Billing tables, Donna
wants you to add records to the Visit table and work with the data stored in it to create
database objects including a query, form, and report. You'll complete these tasks in the
next session.

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 mate rially 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-25

~ Session 1.1 Quick Check

-
!:
w
>
w
a:::
1. A(n) _ _ _ _ is a single characteristic of a person, place, object, event,
or idea.
2. You connect the records in two separate tables through a(n) that
appears in both tables.
3. The whose values uniquely identify each record in a table, is called
a(n) w hen it is placed in a second table to form a relationship
between the two tab les.
4. The is the area of the Access window that lists al l the objects in a
database, and it is the main control center for opening and working w ith data-
base objects.
5. What is the name of the field that Access creates, by default, as the primary key
field for a new table in Datasheet view?
6. Which group on the Table Tools Fields tab contains the options you use to add
new fields to a table?
7. What are the two views you can use to create a table in Access?
8. Explain how the saving process in Access is different from saving in other Office
programs.

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 overnll learning experience. Cengage Learning reserves the right to remove additiooal content at any time if s utlrequent rights restrictions require it.
AC 1-26 Access I Module 1 Creating a Database

Session 1.2 Visual Overview:

The Microsoft Access Help button on the Help tab The Tell Me feature
opens the Access Help window, where you can allows you to search for
The Create tab provides nd information about Access commands and specie help by typing
options for creating features as well as instructions for using them. what you would like to do.
database objects including
tables, forms, and reports.
The options appear on the
tab grouped by object type.

The Query Wizard button


opens a dialog box listing - roo· kl=!J D rn Form Waard
types of wizards that guide . · ·~
.. • .L-J
. • • ·~
--.=. . ·L....J
-. . . · f~ K1 1

you through the steps to -· Nav" ation •


create a query. One of Application Table Table SharePoml Quel)' QUel)' Form form Blank Report
these, the Simple Query
Wizard, allows you to select
Parts • Design lists • Waard Design Design Form fml Mor Forms •
records and elds to display Templates Tables Queries forms
in the query results.
»
The Form tool The Form
You use the options in the quickly creates a Wizard guides
Tables group to create a I fo rm containing you through
table in Datasheet view or in II all the elds in the process of
Design view. The Queries group contains the table (or creating a form.
options for creating a query, query) on which
which is a question you ask about you're basing
the data stored in a database. In the form.
response to a query, Access
displays the specie records and
elds that answer your questions.

The Forms group contains options for creating


a form, which is a database object you use to
enter, edit, and view records in a database.

Copyright 2020 Ccngage 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 1Access AC 1-27

The Create Tab Options

The Reporu group contains options for a l'eport,


which is a formatted printout (or screen ofthe
contents of one of more tables (or

LJ -" ModtJt
Mlao ~ Cllss Module
.jYosullllask
RtPOrll MIOOS 8t Ccdt

The Report
Wlurd guid.,
'-------1 you through the
process of
creatin9 a report.
The Report tool places all
the elds from a selected
' - --1 table (or qvery} on • report,
making it the quickest way
to create a l'eport.

~lle:liOlilC....,.t.-o.. .Alllto;o•~"""r-lw<.....,.t. ........ •~""""'*-••....,•n,...,.,_,.. ._,......,_lhodfWI}'_....,t....,_....,._., ...... -"".O.,.orio).


.,,........t<_ _ ...
Ed;o.... .,._..._........,,._...,.. ....,'"t.,.,.,._,.,C...V.O
......,..;l)· ~«..:~ot......,. ~'"-'_._..,...,_.,..,...,._.,_,._,(,.._.,_...,..._._,... .. ,.,
AC 1-28 Access I Module 1 Creating a Database

Entering Data into Tables


With the fields in place for the Vi sit table, you can now enter the fi eld values for each
record. However, if you closed Access, as instructed, after the previous session, you
must first open Access and the Lakewood database to be able to work with the Visit
table. If you did not close Access in the previou s session and the Lakewood database
is still open (see previous Figure 1- 17), you may skip the steps below that open
Access and the Lakewood database, and go directly to the steps to enter data into the
Vi sit table.

Opening a Database
w • Start Access and display the Recent screen in Backst age view.
u
zw • Click the name of the database you want to open in the list of recently opened
0::: databases.
w or
u.
w • Start Access and display the Recent screen in Backstage view.
0::: • In the navigation bar, click Open Other Files to display the Open screen.
• Click the Browse button to open the Open dialog box, and then navigate to the drive
and folder containing the database file you want to open.
• Click the name of the database file you want to open, and then click Open.

To open Access and Lakewood database:


1. On the Windows taskbar, click the Start button 83. The Start menu opens.
2. Click Access.
3. Access starts and d isplays the Recent screen in Backstage view. You may
choose the Lakewood database from the Recent list (with its location listed
below the database name), or click Open Other Files to d isplay the Open
screen in Backstage view and browse to your database and location. If you
choose t o open the Lakewood database from the Recent list, skip steps 4-6.
4. If you choose to open other files from step 3, on the Open screen, cl ick
Browse . The Open d ialog box opens, showing fo lder information for your
computer.
Trouble? If you are storing your files on One Drive, click OneDrive, and then
sign in if necessary.
S. Navigate to the drive that contains your Data Files.
6. Navigate to the Access1 > Module folder, click t he database file named
Lakewood, and then click Open. The Lakewood database opens in the
Access program window.
Trouble? If a security warn ing appears below the ribbon indicating that
some active content has been disabled, click the Enable Content button.
Access provides this warning because some databases might contain content
that could harm your comput er. Because the Lakewood database does not
contain objects that could be harmful, you can open it safely. If you are
accessing the file over a network, you might also see a dialog box asking if
you want to make the file a trusted document; click Yes.

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 JAoccss AC 1-29

Note that the Lakewood database contains 1\vo objects, the Billing and Visit tables
you created at the end of the previous session (see Figure 1- 17). The next step is for you
to open the Visit table to begil adding records.

To open the Visit table:


t 1. In the Navigation Pane, double-dick Visit to open the Visit table in
Datasheet view.
t 2. On the Navigation Pane, click the Shutter Bar Open/Close Button ~ to
close the pane.
t 3. Click the first row value for the VisitiD field. See Figure 1-18.

. ... ___ ,_,_.._ ....____.. _ ...... _..... ,..... _.... _ .... -. , .

_
~

... !::!!:!! c... ......................... ...


,......... ..,_
y,.._. ." .
·-
five fields in table

- -
• Gill•
Ill .._ , • I II
..
,o\ •'P ;, . 15 • •
button for dosing
the table

• - 0 __·_..._.._-_·.+ - - j values for first re-cord


L
r~-:--=--=-~--, will go in this row

l ready for first field value


(VisitiD) to be entered into
the fi rst record

You are now ready to begin adding records and are positioned in the first field
(VisitiD) of the fi rst record. Donna requests that you enter eight records into the Visit
table, as show in Figure 1- 19.

Visi t table records

VlsltiD PollentiD VtsltOote Reason Wolkln


1495 133 10 12/23/2020 Rhinitis Yes
1450 13272 10/26/2020 l nRuenza YC$
1461 13250 11 /3/2020 Dermatitis YC$
1615 13308 4/ 1/ 2021 COPD management vlslt No
1596 13299 3/24/2021 Pneumonia Yes
1567 13283 2/26/2021 Annual well ness v1slt No
1499 13264 12/28/2020 Hypotension No
1475 1326 1 11/19/2020 Annual well ness visit No

To enter the first record for the Visit table:


0..· !>vw to cyp~> 1h1· t 1. In the f~rst row for tho V•s•tiD f,ofd, type 1495 (the V•s•tiD f•eld value for
numbcrr. "0• and ·1·· and the f"st record), and then press TAB Access adds the f•eld value and
not the letters "0'" and moves the insertion point to the right, into the PatientiD column. See
'T' when entering numefic Figure 1-20.
\'d ue-s, even though the
f1eld •!. of the Shott Text
dill.) lyf*

~21(00~--. . . .Alllt.,..• ..._...._,.,_~.. .................... ..,...,..... ............ ,.............


E*......_.. ........... ....,..,...,,....... . , _ _ ..,......,..,. ~«..:~ot. ........
._""*'_
....,'"f."''""_.·~ ~,.._
.... ........
""',._.,...,.~.....,...... .,.....-"".O..,.-'•~
• ..,...,_.,_,• ..w....e-..., _,(.....,_..,.._._.,..... .,
Another random document with
no related content on Scribd:
közöttük volt, mire az emberek minden irányban szanaszét szaladtak
lábai elől. A Marsbeli nem használta a pusztító hősugarat, hanem
egyenkint felkapkodta s beledobálta őket a háta mögött emelkedő
nagy érckasba, amely olyan volt, mint a munkások vállaira akasztott
kosarak.
Első ízben támadt bennem az a gondolat, hogy a Marsbeliek
talán nem is akarják elpusztítani a legyőzött emberiséget, hanem
valami más szándékuk van vele. Egy pillanatig kővé dermedve
álltunk, majd megfordultunk és egy kapun keresztül, fallal szegett
kertbe menekültünk, belebukva egy szerencsénkre ott levő árokba.
Itt hevertünk és susogva is alig mertünk beszélni, míg a csillagok fel
nem tűntek.
Azt hiszem, éjjeli tizenegy óra volt, mikor annyira összeszedtük
magunkat, hogy újra fölkerekedtünk. Arra nem volt bátorságunk,
hogy az országúton folytassuk útunkat. A sövények mentén,
ültetvényeken keresztül csúszva haladtunk; a tiszteletes jobbfelé, én
pedig balfelé tekintve, feszülten figyeltünk a Marsbeliekre, akik, úgy
látszott, valamennyien körülöttünk tanyáztak. Egyszerre fölperzselt
fekete tisztáson, amely kihűlt hamuval volt tele, szanaszét heverő
holttestekre bukkantunk. Fejük és törzsük rettenetesen össze volt
égve, de lábaik és csizmáik csaknem sértetlenek maradtak.
Körülbelül ötven lábnyira négy roncsolt ágyú és összezúzott
ágyúkocsi mögött élettelen lovak testei hevertek.
Sheen, úgy látszott, elkerülte a pusztítást, de csendes volt és
elhagyott. Itt nem bukkantunk egy halottra sem, bár az éjszaka
sokkal sötétebb volt, semhogy beláthattunk volna a mellékutakra is.
A társam Sheenben egyszerre csak panaszkodni kezdett, hogy
bágyadt és szomjas, és elhatároztuk, hogy próbát teszünk az egyik
házzal.
Az első ház, amelybe beléptünk, miután egy ideig bajlódtunk az
ablakkal, egy félig szabadon álló kis villa volt. Ennivalót nem
találtunk benne mást, csak egy darab száraz sajtot. De ivóvizet
találtunk s magammal vittem egy baltát is, mert azt hittem, hogy
hasznát vehettem legközelebbi betörésünknél.
Átvágtunk az országúton ott, ahol az út Mortlake felé fordul. Itt
fehér ház állt, fallal szegett kert közepén; éléskamrájában egész
halom élelmiszerre bukkantunk. Egy teknőben két egész kenyeret
találtunk, azonkívül egy szelet nyers borjúhúst és egy fél ürüt. Azért
írom le e dolgokat oly részletesen, mert sorsunk arra kényszerített,
hogy két hétig ebből táplálkozzunk. Egy állvány alatt palacksörök
álltak és volt a kamrában két zsák zöldbab s egypár fej fonnyadt
saláta is. Az éléskamra mosogató konyhába nyílt, ahol tüzifa volt
felhalmozva egy pohárszék mellett, amelyben tíz-tizenkét palack
burgundit, egy csomó leves- és lazac-konzervet s két doboz
kétszersültet találtunk.
Leültünk a sötétben a konyhában, – világot gyujtani nem
mertünk, – ettünk a kenyérből és az ürüből s ittunk az egyik palack
sörből. A tiszteletes, aki mindig oly félénk és nyughatatlan volt, most
csodálatos módon tovább akart indulni. Üggyel-bajjal rávettem az
evésre, hogy erejét összeszedhesse, mikor egyszerre bekövetkezett
az az esemény, amelynek folytán foglyokká lettünk.
– Még nem igen lehet éjfél, – szóltam, mire vakító, élénkzöld fény
lobbant fel körülöttünk. A konyhában egy percre tisztán látszott
minden a zöldes-fekete fényben, azután újra elsötétedett. Rögtön rá
oly csattanás hallatszott, aminőt sem azelőtt, sem azóta sohasem
hallottam. Egy szempillantás mulva hátam mögött tompa zuhanás,
üvegcsörömpölés és a körülöttünk beomló faltörmelékek recsegése
és ropogása hangzott; nyomban rá lehullott a mennyezet vakolata,
ezer darabra törve fejünk fölött. Hosszában végigzuhantam a
padlón, belevágódva a kályha fogójába és elkábultam. Amint a
tiszteletestől megtudtam, hosszú ideig eszméletlenül hevertem.
Mikor visszanyertem eszméletemet, újra sötétségben voltunk s a
tiszteletes, akinek arca, mint később észrevettem, a homlokáról
szivárgó vértől nedves volt, vízzel locsolgatott.
Egy ideig nem tudtam visszaemlékezni arra, ami történt. Majd
lassan eszembe jutott minden. Megsebzett halántékom sajogni
kezdett.
– Jobban van? – kérdezte suttogva a tiszteletes.
Végre feleltem neki. Felültem.
– Ne mozduljon! – szólt. – A padló tele van a pohárszékről
lezuhant edények cserepeivel. Ha megmozdul, zajt csap s azt
hiszem, hogy azok kinn vannak.
Oly csendben ültünk mind a ketten, hogy alig hallottuk egymás
lélekzését. Halálos csönd volt körülöttünk; csak egyszer csúszott le
csörömpölve közelünkben egy darab vakolat, vagy valami
téglatörmelék. Kívülről, nagyon közel hozzánk, meg-megújuló
érccsörömpölés hangzott be a konyhába.
– Hallotta? – szólt a tiszteletes, mikor nemsokára újra hangzott.
– Igen! – szóltam. – De mi lehet ez?
– Egy Marsbeli! – felelt a tiszteletes.
Újra hallgatóztam.
– Nem a hősugár volt, – szóltam elgondolkozva s egy ideig
csaknem azt hittem, hogy egyik nagy hadigép ütközött bele a házba
oly módon, mint az a másik, amelyet a sheppertoni toronyba láttam
beleütődni.
Helyzetünk oly rendkívüli, oly érthetetlen volt, hogy három-négy
óra hosszáig, míg csak virradni nem kezdett, alig mertünk
megmozdulni. S ekkor a fény nem az ablakon szűrődött be, – az
ablak fekete maradt, – hanem egy háromszögletű nyíláson, amely
hátunk mögött támadt a falon egy gerenda s egy csomó törött tégla
között. Most láttuk csak homályosan a konyha belsejét.
Az ablakot betörte egy darab iszapos kerti föld, amely
keresztülrepülve az asztal fölött, amely mellett ültünk volt, lábaink
körül hevert. Kívül földhányás tornyosodott a magasba a ház mellett.
Az ablakráma tetején leszakított csatornacső látszott. A padló tele
volt összezúzott vasedénydarabokkal. A konyha vége, a ház felé, be
volt törve s amint a napfény besütött, nyilvánvalóvá vált, hogy a ház
legnagyobb része összeomlott. A romhalmazzal élénk ellentétben
állt a csinos, divatos halványzöldszínű pohárszékállvány, amely alatt
egy csomó réz- és bádogedény volt. A fal tapétája kék és fehér
cseréputánzat volt s egypár színes konyhaeszköz lógott a falon a
tűzhely fölött.
Amint jobban megvirradt, a fal résén keresztül egy Marsbeli nagy
testét láttuk, aki, ha jól sejtem, őrt állt a még mindig izzó henger
fölött. E látványra oly óvatosan, amint csak tőlünk telt, a konyha
világos részéből hátramásztunk a mosogatókonyha sötétségébe.
Hirtelen fölvillant agyamban a történtek helyes magyarázata.
– Az ötödik henger, – susogtam. – A Marsból jött ötödik lövés
zúzta össze a házat és temetett bennünket a romok alá!
A tiszteletes egy ideig némán állt, azután így susogott:
– Isten irgalmazzon nekünk!
Csakhamar hallottam, hogy magában siránkozik.
Eltekintve ettől a hangtól, teljes csendben hevertünk a
mosogatókonyhában. Alig mertem lélekzeni, s tekintetemet a
konyha-ajtón beszűrődő gyönge fényre függesztettem. Éppen csak a
tiszteletes szomorú, tojásdad arcát, gallérját és kézelőit láthattam.
Kívül megkezdődött az érckalapácsolás, majd iszonyú ordítozás és
egy kis idő mulva sziszegés hallatszott, mintha valami gép kezdett
volna működni. Mindez a legnagyobbrészt rejtélyes lárma, meg-
megújulva folytatódott, sőt, amint az idő telt, mintha kissé erősbödött
is volna. Majd szabályos zakatolás hallatszott, amelyet olyan
rázkódás követett, hogy körülöttünk minden megrendült s a
pohárszék edényei csörömpölve ütődtek egymáshoz. A zakatolás és
a rázkódás folytatódott. Egyszerre csak a fény elsötétült s a
kísértetiesen megvilágított konyhaajtó teljes feketeségbe borult.
Több órán keresztül kuporogtunk némán, borzongva, míg
figyelmünk végre ki nem merült s el nem aludtunk…
Végre arra ébredtem fel, hogy iszonyú éhes vagyok. Azt hiszem,
hogy csaknem egy teljes napig tartott az alvásunk. Éhségem oly
tűrhetetlenné vált, hogy cselekvésre indított. Szóltam a
tiszteletesnek, hogy táplálék után nézek és az éléskamra felé
botorkáltam. A tiszteletes nem felelt, de alig kezdtem enni, a gyönge
zaj, amelyet okoztam, őt is mozgásba hozta s csakhamar hallottam,
hogy utánam mászik.

II.
Mit láttunk a rombadőlt házból?

Evés után visszamásztunk a mosogatókonyhába. Itt bizonyára


újra elszunnyadtam, mert mikor hirtelen felriadtam, egyedül voltam.
A zakatolás és a rázkódás fárasztó kitartással folytatódott. Susogva
többször szólítottam a tiszteletest s végre a konyhaajtó felé
botorkáltam. Még nappal volt s a tiszteletes a szoba túlsó végén állt,
a háromszögletű lyukhoz támaszkodva, amely a Marsbeliekre nyílt.
Vállait úgy felhúzta, hogy a fejét nem láthattam.
Különféle zajt hallottam, mintha valami gépezet működött volna.
A zakatoló dörömbölésekre meg-megrázkódott minden. A fal
nyílásán keresztül egy fa tetejét láttam, amely a csendes esti égbolt
aranyos, meleg kékségével érintkezett. Egy pillanatig mozdulatlanul
néztem a tiszteletest, azután mászva közeledtem feléje, a
legnagyobb óvatossággal lépkedve a padlót borító cseréptörmelék
között.
Megérintettem a tiszteletes lábát, mire úgy megriadt, hogy egy
csomó vakolat kívül levált a falról s hangos zuhanással a földre hullt.
Megragadtam karját, attól tartva, hogy felkiált s jóideig mozdulatlanul
lapultunk meg mind a ketten. Majd megfordultam, hogy megnézzem,
mennyi maradt állva védővárunk falaiból. Ahol a vakolat levált,
merőleges repedés támadt a romhalmaz között, úgyhogy egy
gerendán óvatosan felhúzódva, a résen keresztül kinézhettem arra
felé, ahol a mult éjjel nyugodt külvárosi országút húzódott.
Valósággal óriási változás tűnt szemembe.
Az ötödik henger mindenbizonnyal a kellő közepébe zuhant
annak a háznak, amelybe először behatoltunk. Az épület eltűnt,
teljesen porrá zúzódott és szétszóródott a lökés erejétől. A henger
sokkal mélyebben feküdt az eredeti alapzatnál, egy mély üregben,
amely már sokkal nagyobb volt, mint az az üreg, amelybe
Wokingban belepillantottam. Az üreg körül, a rettenetes zuhanás
erejétől, a szó szoros értelmében szétfröccsent a föld s halmokba
tornyosodott, amelyek elrejtették szemem elől a szomszédos
házakat. Éppen olyan volt, mint mikor hatalmas kalapácsütés sujt az
iszap közé. A mi házunk hátrafelé omlott össze. Homlokzata, még a
földszinten is, teljesen romba dőlt; a konyha és a mosogatókonyha
véletlenül megmaradt, iszapos romok közé temetve; óriási
földtömegek zárták körül minden oldalról, csak a henger felé nyíló
rész maradt szabadon s ez irányban valósággal a szélén függtünk
annak a nagy köralakú üregnek, amelynek készítésével foglalkoztak
a Marsbeliek. A heves zakatolás hátunk mögül hangzott s újra meg
újra ragyogó zöldes gőz szállt a magasba, mint valami fátyol, az előtt
a kis nyílás előtt, ahonnan leskelődtünk.
A henger az üreg közepén már megnyílt s az üreg túlsó szélén
az összezúzott s kavicshalmokkal födött bokrok között az esti
égboltozat felé meredve állt az egyik hatalmas hadigép. Gazdája
nem volt benne. Eleinte, bár helyes lett volna, hogy először ezt írjam
le, alig vettem észre az üreget és a hengert. Eleinte alig láttam
egyebet, mint valami rendkívül módon csillámló gépezetet, amely az
üreg készítésével volt elfoglalva és néhány különös teremtményt,
amelyek lassan, kínosan mászkáltak az üreg közelében levő
földhányásokon.
A gépezet ragadta meg először a figyelmemet. Azóta
munkagépnek nevezik az effajta gépezetet és bonyolult
szerkezetének tanulmányozása rengeteg erőfeszítésre ingerelte már
az emberi találékonyságot. Amint rám virradt, eleinte valami ércpók
benyomását tette reám, amelynek öt csuklós, könnyen mozgó lába
és számtalan tagozott emeltyűje és rúdja van; testéből pedig
ragadozásra való tapogatószervek nyúlnak ki. Karjai
legnagyobbrészt össze voltak húzva, de három hosszú tapogatójával
egy csomó rudat, lemezt és gerendát halászott ki a hengerből,
amelyek a henger burkolatát töltötték ki és nyilván a henger falainak
erősítésére szolgáltak. Amit kivett, a magasba emelte és azután
letette a háta mögött levő tisztásra.
Mozgása oly gyors, oly bonyolult és oly tökéletes volt, hogy
eleinte, bár ércfényben csillámlott, nem is tartottam gépezetnek. A
hadigépek is effajta gépek voltak és bámulatosan működtek; de a
munkagéphez fogható dolgot nem ismerünk. Aki nem látta soha
ezeket az ércszerkezeteket s csak a művészek rosszul elképzelt
utánzásaira vagy a magamfajta szemtanúk tökéletlen leírására
támaszkodik, az alig nyerhet tiszta képet erről az eleven valamiről.
Jól emlékszem különösen egyre azok közül a röpiratok közül,
amelyek mingyárt kezdetben megpróbáltak beszámolni a háborúról.
Ebben a röpiratban volt egy illusztráció is. A művész nyilván futólag
tanulmányozta az egyik hadigépet, de ezzel véget is ért a
tudománya. A hadigépeket úgy mutatta be, mint födött, merev
háromlábakat minden hajlékonyság vagy finomság nélkül s a
benyomásuk monoton és teljességgel megtévesztő volt. Ennek a
röpiratnak igen nagy volt az olvasóközönsége s én éppen ezért
említem, hogy figyelmeztessem erre az olvasókat. A röpirat
hadigépei époly kevéssé hasonlítottak a működésben levő
Marsbeliekhez, mint a bábuk az élő emberekhez. Véleményem
szerint a röpirat sokkal jobb lett volna e nélkül az illusztráció nélkül.
Eleinte, mint már említettem, a munkagépet nem is tartottam
gépnek, hanem inkább valami csillámló burkolattal borított rákfajta
teremtménynek, melynek agyrészét az a Marsbeli képviselte, aki
finom tapogató szerveivel a gépezet mozgását irányította. De
csakhamar szemembe ötlött, hogy époly szürkésbarna, fényes,
bőrszerű páncél födi, mint az üreg túlsó szélén csúszó-mászó többi
testeket, mire sejteni kezdtem ennek az ügyes munkának valódi
mivoltát. Amint ennyire jutottam, érdeklődésem a többi lény felé, a
valóságos Marsbeliek felé fordult. Futólag láttam volt már őket,
úgyhogy az első undorító benyomás nem zavarta többé
megfigyelésemet. Azonkívül rejtve voltam, mozdulatlanul álltam s
nem volt semmi okom a sietésre.
Most láttam, hogy képzelni sem lehetett náluk földietlenebb
teremtményeket. Rengeteg kerek tömegek – vagy inkább fejek –
voltak. Minden tömeg átmérője négy láb lehetett. A kerek testeken
elől arc volt. Az arcon nem voltak orrlyukak; úgy látszik, a
Marsbelieknek csakugyan nem is volt semmiféle szaglóérzékük;
hatalmas fekete szempár s ez alatt húsos csőrféle látszott az arcon.
A fej vagy test hátulján – alig tudom, hogy nevezzem – egyetlen
szűk, dobhártyaszerű felület volt, melyről később a boncolás
megállapította, hogy fül. A mi sűrűbb levegőnkben azonban alig
vehették hasznát. A száj körül tizenhat, csaknem ostorszerű,
nyulánk tapogató-szerv helyezkedett el két nyolcas csomóban. E
csomókat később Howes professzor, a kiváló anatómus, sokkal
megfelelőbben kezeknek nevezte. Mikor először láttam a
Marsbelieket, mintha csakugyan iparkodtak is volna e kezek
segélyével fölemelkedni, csakhogy ez, tekintettel a földi viszonyok
között megnövekedett súlyukra, természetesen nem sikerült nekik.
Észszerűen föltehetjük, hogy a Marson nagy könnyűséggel
járhattak-kelhettek rajtuk.
Itt jegyzem meg, hogy belső szervezetük, mint a későbbi
boncolás kimutatta, csaknem épily egyszerű volt. Szervezetük
legnagyobb része az agy volt, melyből hatalmas idegek ágaztak ki a
szemekbe, a fülbe és a tapogatószervekbe. A bonyolódott tüdőbe
torkollott a száj, volt továbbá szívük és véredényzetük. A külső bőr
görcsös rángatózása elárulta, hogy a tüdő a sűrűbb légkörben s a
föld nagyobb gravitációs vonzásában kínosan működik.
Ennyiből állt a Marsbeliek egész szervezete. Csodálatos,
legalább nekünk embereknek, hogy a bonyolódott emésztési
szervnek, amely a mi testünknek főrésze, a Marsbeliek
szervezetében nyoma sem volt. Csupa fej voltak, csupa fej; beleik
nem voltak. Nem ettek s még kevésbbé emésztettek. E helyett más
teremtmények friss, élő vérét befecskendezték saját ereikbe. Magam
is láttam ezt, mint a kellő helyen meg is fogom említeni. Azonban,
bárha finnyásnak fogok is feltűnni, nem vagyok képes leírni azt, amit
nem tudtam végignézni sem. Legyen elég annyi, hogy még élő
állatoknak, legtöbbször emberi lénynek a vérét fecskendezték be kis
cső segítségével közvetlenül a befogadó ér-csatornába…
Kétségtelen, hogy ennek puszta gondolata is visszataszító reánk
nézve; de ugyanakkor ne feledkezzünk meg arról sem, mily
visszataszítók lehetnek valami értelmes tengeri nyúlra nézve a mi
húsevő szokásaink.
A befecskendezés alkalmazásának fiziológiai előnyei
tagadhatatlanok, ha arra a rettenetes emberi idő- és erőpusztításra
gondolunk, amelyet az evés és az emésztési folyamat okoz. Testünk
fele oly mirigyekből, csövekből és szervekből áll, amelyek avval
vannak elfoglalva, hogy a legkülönbözőbb táplálékot vérré
változtatják. Az emésztési folyamat s ennek hatása az
idegrendszerre aláaknázza testi erőnket és befolyásolja
kedélyállapotunkat. Az emberek boldogan vagy nyomorultan járnak-
kelnek a szerint, amint egészséges vagy beteg a májuk, vagy épek a
gyomormirigyeik. A Marsbeliek a kedélyállapot és az izgalom
mindeme szervi hullámzásától meg vannak mentve.
Bizonyos, hogy nagy előszeretettel táplálkoztak emberi vérből.
Ezt részben megmagyarázzák azoknak az áldozataiknak a
maradványai, akiket a Marsból hoztak magukkal tápláléknak. Ezek a
teremtmények, kezeinkbe került összezsugorodott maradványaikból
ítélve, kétlábúak voltak. Porhanyós, sziliciumos csontvázuk csaknem
a sziliciumos szivacsok vázához hasonlított. Gyönge izomzatuk volt.
Hat láb magasak lehettek. Kerek, emelt fejük volt, s nagy szemeik
csontos üregekben feküdtek. Úgy látszik, a Marsbeliek kettőt-hármat
hoztak magukkal minden hengerben s valamennyit megölték, mielőtt
a földre érkeztek. Mindegy volt e kétlábúakra nézve, mert a mi
bolygónkon, amint próbáltak volna fölegyenesedni, testük minden
csontja összeroppant volna.
Itt, ahol e leírással foglalkozom, kiegészítésül elmondok oly
további részleteket is, amelyekről ez időben ugyan még nem volt
tiszta fogalmunk, de amelyek nagyban elősegítik azt, hogy aki a
Marsbelieket nem ismeri, tisztább képet alkothasson magának e
támadó lényekről.
Három más rendkívüli fiziológiai különbség is volt közöttük és
közöttünk. Szervezetük nem ismerte az alvást épúgy, mint az emberi
szív. Mivel az izomzat mechanizmusának felhasznált erejét nem
kellett pótolniok, az alvást, az életnek ezt az időszakos megszünését
nem ismerték. Úgy látszik, fáradtságot egyáltalában nem, vagy csak
igen kis mértékben éreztek. A földön sohasem mozoghattak
erőlködés nélkül, de azért mindvégig folytonos tevékenységben
voltak. Huszonnégy óra alatt huszonnégy órát dolgoztak, körülbelül
úgy, mint a földi lények közül a hangyák.
Másodszor s ez a nemi különbségek világában fölötte
csodálatosnak tetszik, a Marsbeliek teljesen nemnélküliek voltak s
így nem volt bajuk azokkal a viharos izgalmakkal sem, amelyekből a
nemi különbség folytán bőven kijut az embereknek. Most már
bizonyos, hogy a háború alatt csakugyan született a földön egy kis
Marsbeli is. Mikor ráakadtak, oda volt nőve szülőjéhez, részben
kicsirázva belőle, úgy, mint kicsiráznak a fiatal liliomhagymák, vagy
az édesvízi polip-újszülöttek.
Az emberből és általában véve valamennyi magasabbrendű földi
állatból a szaporodásnak ez a módja kiveszett; de bizonyos, hogy
földünkön is ez volt a kezdetleges szaporodási mód. Az alsóbbrendű
állatoknál, fel egészen a gerincesekhez legközelebb álló
zsákpuhányokig, mind a két szaporodási mód előfordul egymás
mellett; de végül a nemi szaporodás teljesen kiszorította a másik
módot. A Marson ellenben nyilvánvalóan éppen a megfordított
folyamat játszódott le.
Érdemes felemlíteni, hogy egy félig-meddig tudós hírében álló
filozofáló író, jóval a Marsbeliek megjelenése előtt, az emberi
szervezetnek oly átalakulását jósolta meg a messze jövendőben,
amely nem nagyon tér el a Marsbeliek tényleges szervezetétől.
Jövendölése, emlékszem, 1893 novemberében vagy decemberében
jelent meg az azóta megszűnt Pall Mall Budget-ben és emlékszem
arra is, hogy a Punch nevű Mars-korszak előtti folyóirat ki is csúfolta.
Kimutatta az illető – bolondozó, tréfás hangon, – hogy a mechanikai
készülékek tökéletesülése fölöslegessé teszi a lábakat, a kémia
fejlődése pedig az emésztést; hogy olyanféle szervek, aminő a haj, a
külső orr, a fog, a fül, az áll, nem lesznek többé lényeges részei az
emberi lénynek s hogy a természetes kiválasztás a messze
jövendőben állandóan korcsosítani fogja ezeket a szerveket. Csak
az agyvelő marad továbbra is lényeges kellék. A test részei közül
csak a kéznek van kilátása arra, hogy megmarad, mint «az agy
tanítója és végrehajtó közege». Míg a test többi része elsorvad, a
kéz egyre nagyobb lesz.
Ebben a tréfás jövendölésben sok az igazság és például
kétségtelen, hogy a Marsbeliek szervezetének állati oldalát az
értelem csakugyan tökéletesen elnyomta. Nagyon valószínűnek
tartom, hogy a Marsbeliek némileg hozzánk hasonló lényekből
származtak, oly módon, hogy testük többi részének rovására agyuk
és kezeik fokozatosan kifejlődtek, az utóbbiak végül a finom
tapogatószervek két csomójává alakulván át. Agyvelejük, test híján,
természetesen fölötte önző, értelmes lénnyé vált, melyben nyoma
sincs az emberi lény érzelmi alapjainak.
A harmadik jelentős különbség e teremtmények szervezete és az
emberi szervezet között olyan volt, amelyet az első tekintetre
valószínűleg a legtöbb ember alárendelt jelentőségű
részletkérdésnek lett volna hajlandó tekinteni. Mikroorganizmusok,
amelyek a földön annyi kínt és bajt okoznak, vagy sohasem voltak a
Marson, vagy a Marsbeli egészségügyi tudomány már évezredekkel
előbb végleg kipusztította őket. Száz meg száz baj, a földi lázak és
ragályok, a sorvadás, a rákbajok, a kelések és más effajta
betegségek sohasem zavarták életük folyását. És ha már a Marsbeli
és a földi élet különbségeiről beszélek, célzok itt röviden azokra a
furcsa sejtelmekre is, amelyeket a «vörösfű» támasztott.
A Mars növényvilágának uralkodó színe nyilvánvalóan nem zöld,
hanem élénk vérvörös. Bizonyos, hogy a magvakból, amelyeket a
Marsbeliek szándékosan vagy véletlenül magukkal hoztak, minden
egyes esetben vörös színű növényzet csirázott ki. De csak egyetlen
Marsbeli növény bírta többé-kevésbbé eredményesen a versenyt a
földi növényfajokkal. S ez az, amelyet a nép «vörösfű»-nek nevez. A
vörösfű kérészéletű folyondár s növését csak kevesen látták. Egy
ideig azonban csodálatos életerővel és bujasággal tenyészett.
Fogságunk harmadik vagy negyedik napján ellepte az üreg oldalait s
kaktusz-szerű ágai kármin-színű kerettel vonták be háromszögletű
ablakunk széleit. Később láttam, hogy magvaival be volt vetve az
egész vidék, különösen oly helyeken, ahol vízfolyás volt.
A Marsbeliek hallószerve egyetlen kerek dob volt, fej-testüknek
hátulján. Szemeik látóereje nem igen különbözött a mieinkétől,
kivéve azt a körülményt hogy Philips szerint, a kéket, és az ibolyát
feketének látták. Szinte közvéleménnyé vált az a hit, hogy hangokkal
és tapogatószerveik mozgatásával érintkeztek egymással. Ezt állítja
például az az ügyes, de sebtében összeállított röpirat is
(nyilvánvalóan olyanvalaki írta, aki nem volt szemtanúja a
Marsbeliek tevékenységének), amelyet már említettem s amely
mindmáig főforrása volt a Marsbeliekre vonatkozó tudnivalóknak.
Nincs élő ember, aki annyit látta volna a Marsbelieket
munkálkodásuk közben, mint én. Véletlenség csak, hogy így történt,
de ez a tény. És én kijelentem, hogy hosszú időn át közelről
megfigyeltem őket s láttam, amint négyen, öten, sőt egy ízben hatan
nehézkesen mozogva, a legbonyolultabb munkákat végezték együtt,
minden hang vagy taglejtés nélkül. Sajátságos kiabálásuk mindenkor
táplálkozásukat előzte meg; e kiabálásban nem volt semmiféle
moduláció s azt hiszem, hogy nem is az érintkezés közvetítésére
szolgált, hanem egyszerűen a levegő kileheléséből eredt, mikor
szívó táplálkozási működésükhöz készülődtek. Bizonyos mértékben
jogom van arra a föltevésre, hogy a pszichológiának legalább az
alapvető fogalmaival tisztában vagyok s nincs, amiről jobban meg
volnék győződve, mint arról, hogy a Marsbeliek minden fizikai
közvetítés nélkül cserélték ki gondolataikat. S mondhatom, nagy
elfogultságot kellett leküzdenem, hogy e meggyőződést magamévá
tegyem. A Marsbeliek támadása előtt ugyanis, amint egyik-másik
olvasóm tán emlékezik is, bizonyos hevességgel írtam a telepátia
ellen.
A Marsbeliek nem viseltek ruhát. Felfogásuk a díszről és az
illemről szükségszerűleg eltért a mi felfogásunktól; s nemcsak az
időjárás változásaival szemben voltak nyilvánvalóan sokkal
kevésbbé érzékenyek, mint mi: hanem úgy látszik, hogy a szükség
viszontagságai sem ártottak egészségüknek. De ha ruhát nem is
viseltek, annál inkább kitűnt fölényük az ember fölött mindabban a
másféle művészi járulékban, amellyel testüket kiegészítették.
Mi emberek kerékpárainkkal, korcsolyáinkkal, lilienthali lebegő-
gépeinkkel, ágyúinkkal, botjainkkal s több efféle dolgainkkal éppen a
kezdetén vagyunk annak a fejlődésnek, amelyen a Marsbeliek már
keresztülmentek. Merő aggyá váltak, szükségleteiknek megfelelő
különböző testeket hordva magukkal, úgy, amint az ember
különböző ruhát hord; ha siet, kerékpárra ül; ha eső esik, ernyőt
feszít ki. S készülékeikben az emberre nézve talán az a különös tény
a legcsodálatosabb, hogy ami az ember mechanikai találmányainak
uralkodó vonása, azt nélkülözik: kerekek nincsenek rajtuk; amit csak
magukkal hoztak a földre, mindabban nyoma, sőt sejtése sincs a
kerék használatának. Pedig ahol helyváltoztatásról van szó, legalább
is ezt várná az ember. Érdekes, hogy maga a Természet a mi
földünkön sem alkalmazta soha a kereket, vagy ha igen, a fejlődés
folyamán többre becsült más eszközöket. Szinte hihetetlen, hogy a
Marsbeliek a kereket nem ismerték volna. De nemcsak ennek a
használatát kerülték, hanem rendkívül ritkán alkalmazták a szilárd
vagy relatív szilárd sarkpontot, egy síkra korlátozott körmozgásokkal.
Gépezeteiknek csaknem valamennyi tagozata szépen hajlított,
keskeny vápákon ide-oda sikló részeknek egy-egy bonyolult
rendszere. S ha már benne vagyok a részletekben, megemlítem azt
is, hogy gépeik hosszú emelőit ruganyos tokban elhelyezett
korongok izomrendszer-utánzata hozza mozgásba. E korongok,
valahányszor keresztül fut rajtuk a villamos áram, polarizáltatnak és
szorosan s erősen egymáshoz tapadnak. Így jön létre az az állati
mozgáshoz hasonló csodálatos mozgás, amely annyira lesujtotta s
megzavarta az emberi szemlélőt. Mikor először pillantottam ki a
résen, efféle izomutánzatokat láttam abban a rákhoz hasonló
munkagépben, amely az üreg kiürítésével foglalkozott.
Összehasonlíthatatlanul több élet volt benne, úgy látszott, mint a
valóságos Marsbeliekben, akik rajta túl lihegve hevertek az alkonyati
világosságban, erőtlenül mozgatva tapogatószerveiket, elgyöngülve
a térben megtett óriási úttól.
Mialatt e gyönge mozgásokra figyeltem a napfényben,
szemügyre véve alakjuk minden különös részletét: a tiszteletes
hevesen megrántva karomat, figyelmeztetett, hogy ő is jelen van.
Visszafordultam s komor ábrázatán, néma, de beszédes ajkán
láttam, hogy a rés után vágyakozik, amelyen egyszerre csak
egyikünk pillanthatott ki. Egy darabig abbahagytam a
megfigyeléseket s ezalatt ő élvezte ezt az előjogot.
Mikor újra kitekintettem, a szorgalmas munkagép az üregből
kiszedett géprészeket saját magához hasonló készülékké illesztette
már össze; s balra lejebb egy kis, működésben levő
ásómechanizmust vettem észre, amely zöld gőzgomolyokat lökve ki
magából, az üreg körül járt munkálkodva. Kiszélesítette az üreget és
rendszeresen, óvatosan töltést hányt fel az üreg körül. Ez okozta
azokat a szabályos csapkodásokat és ritmikus rázkódásokat,
amelyekre menedékünk romjai meg-megremegtek. Munka közben
sivított és ordított. Amennyire kivehettem, a gép körül nyoma sem
volt igazgató Marsbelinek.

III.
A fogság napjai.

Egy második hadigép közeledése visszaűzött leshelyünktől a


mosogatókonyhába, mert féltünk, hogy a Marsbeli a magasból
megpillanthat bennünket a torlasz mögött. Később nem igen
tartottunk ettől, mert rájöttünk, hogy a vakító napfényben levő szem
menedékhelyünket koromsötétségnek látja; de eleinte a közeledés
legegyszerűbb jelére nagy szívdobogás közt menekültünk a
mosogatókonyhába. De bármily rémítő veszély fenyegetett, a
kikukucskálás ingerének egyikünk sem állhatott ellen. S most szinte
bámulattal gondolok arra, hogy bár az éhhalál vagy esetleg ennél
még borzasztóbb elpusztulás veszedelme fenyegetett, mégis
elkeseredett harcot folytattunk a kitekintés eme szörnyű előjogáért.
Groteszk léptekkel mértük fel s alá a konyhát, tele égő
kíváncsisággal s attól félve, hogy zajt csapunk. És azon a néhány
hüvelyknyi veszedelmes területen verekedtünk, lökdösődtünk,
taszigáltuk egymást.
Bizonyos, hogy hajlamaink, észjárásunk és cselekvési módunk
semmikép sem fért össze. A veszély és az elszigeteltség még
inkább fokozta ezt az összeférhetetlenséget. Már Hallifordban
meggyűlöltem gyámoltalan jajgatását, ostoba nyakasságát.
Végnélküli mormogó monológjai teljesen megakadályoztak abban,
hogy valami menekülési módot kieszeljek s olykor-olykor valósággal
az őrülés szélére kergetett. Annyira hiányával volt az
önfegyelmezésnek, mint egy együgyü némber. Órákhosszat el tudott
sírni s valóban azt hiszem, hogy az életnek ez az elkényeztetett
gyermeke azt gondolta, hogy gyönge könnyeinek van valami
haszna. És én ott ültem a sötétségben, képtelenül arra, hogy
kivonjam elmémet ez alkalmatlankodások hatása alól. Többet evett,
mint én s hiába bizonyítgattam neki, hogy életbenmaradásunk
egyetlen reménye nem más, mint hogy addig, míg a Marsbeliek az
üreggel el nem készülnek, a házban tartózkodjunk s hogy e hosszú
várakozás ideje alatt csakhamar bekövetkezhetik az a perc, amikor
hiányát fogjuk érezni a tápláléknak. Hosszabb időközökben
meggondolatlanul nagyokat evett és ivott s csak keveset aludt.
Amint teltek a napok, szörnyű gondatlansága annyira fokozta
szorult helyzetünk veszedelmét, hogy bármennyire undorított is a
dolog, fenyegetéshez s végül veréshez folyamodtam. Ez egy időre
kijózanította. De azok közül a ravasz találékonysággal telt, gyönge
emberek közül való volt, akik nem törődnek sem istennel, sem
emberrel, sőt nem törődnek saját magukkal sem, a büszkeséget
nem ismerik, félénk, vérszegény, gyűlölködő lelkek.
Kellemetlen reám nézve visszaemlékezni és leírni ezeket a
dolgokat; de azt akarom, hogy történetemből ne maradjon el semmi.
Az, aki megmenekült az élet sötét és rémületes látványaitól,
brutalitásomat, a végső tragédiát előidéző dühkitörésemet nagyon
könnyen elítélheti; mert az ilyen ember mindenkinél jobban tudja azt,
mi igazságtalanság; de sejtelme sincs arról, mire képesek az
agyonkínzottak. De akik az árnyékot járva, végül eljutottak a dolgok
alapjaihoz, azokban több lesz az irgalom.
S mialatt mi belül susogva végigküzdöttük sötét, homályos
vitánkat, étel és ital után kapkodva, verekedve, azalatt kívül a
rettenetes június irgalmatlan napfényében a Marsbeliek tovább
folytatták különös, csodás munkájukat az üregben.
Hadd térjek vissza akkori új tapasztalataimra. Jódarab idő mulva
mertem csak visszatérni leshelyemre. A jövevények ezalatt nem
kevesebb, mint három hadigép gazdáival erősbödtek. Ez utóbbiak új
eszközöket hoztak magukkal, amelyek rendben ott álltak a henger
körül. A második munkagép már készen állt és azzal volt elfoglalva,
hogy az egyik új készüléknek szolgáljon. Ez hatalmas tejeskannához
hasonló test volt, amely fölött körte-alakú tartály ingott ide-oda s
amelyből fehér por ömlött egy alul levő kerek medencébe.
Az ingó mozgást a munkagép egyik tapogatószerve hozta létre.
A munkagép két, ásásra való kezével nagy göröngytömeget ásott ki
és dobott bele a körte-alakú tartályba; egy másik karjával pedig
időnként kinyitott egy ajtót és kormos fekete salakot tisztított le a gép
középső részéről. Más acél-tapogató a port a medencéből barázdás
csatornán keresztül valami más tartály felé irányította, amelyet a
kékes porsánc elfödött szemeim elől. E láthatatlan tartályból vékony
zöld füstszalag emelkedett merőlegesen a csendes levegőbe. Amint
nézegettem, a munkagép halk zenei csengéssel kinyujtotta egyik
összecsukható tapogatóját, mely egy pillanattal előbb csonka kilógó
része volt csak neki s a vége csakhamar eltűnt a göröngysánc
mögött. A következő pillanatban fehér aluminium-rudat emelt föl,
amely még érintetlen volt s vakító fényben ragyogott és letette az
üreg szélére álló, egyre növekvő rúd-halomra. A szürkülettől a
csillagos éjszaka beálltáig ez az ügyes gép többet csinált száz
rúdnál a nyers göröngyből s a kékes porsánc folyton emelkedett, míg
végre az üreg száját el nem érte.
E gépek gyors, bonyolult mozgásai és gazdáik tehetetlen, lihegő
ügyetlensége között oly szembeszökő volt az ellentét, hogy napokon
keresztül ismételten azt kérdeztem magamtól, valóban ez utóbbiak-e
az élőlények.
Éppen a tiszteletes nézett ki a nyíláson, mikor az első embereket
hozták az üregbe. Én lenn ültem összekuporodva, feszült
figyelemmel hallgatózva. A tiszteletes hirtelen visszahökkent és én
attól tartva, hogy észrevettek bennünket, ijedten összekuporodtam.
A tiszteletes lemászott a romhalmazról s mellém kuporodva a
sötétségben, tagolatlan hangokat ejtett heves taglejtések közben,
úgyhogy egy percre reám is átragadt rémülete. Csak kezével intett,
hogy lemond a nyílásról; s kíváncsiságom csakhamar oly bátorságot
öntött belém, hogy fölkeltem, keresztüllépve rajta, s felkapaszkodtam
a nyiláshoz. Eleinte nem láthattam, mi lehet az oka rémületének. A
szürkület beállófélben volt, a kis csillagok alig látszottak; de az
üreget fényesre világította az aluminiumgyártás libegő zöld tüze. Az
egész kép, szörnyen fárasztva a szemet, libegő zöld lángok és ide-
oda mozgó rozsdás-fekete árnyak keveréke volt. E tömkeleg felett s
rajta keresztül denevérek röpködtek, minderre ügyet sem vetve. A
nehézkesen mozgó Marsbeliek már nem látszottak; a kékeszöld
porrakás annyira emelkedett, hogy elfödte őket; s az üreg sarkában
egy hadigép állt, összehúzott, megkurtított lábakon. A gép csengő
lármája közben egyszerre csak úgy rémlett, mintha emberi hangokat
hallottam volna. Eleinte azt hittem, hogy tévedek.
Összekuporodtam, megfigyelve a hadigép minden részletét s
most először győződve meg róla teljesen, hogy a csuklya csakugyan
Marsbelit rejt magában. Mikor a zöld lángok a magasba lobbantak,
láttam bőrének olajos csillámlását és szemeinek ragyogását.
Egyszerre csak ordítást hallottam s láttam, amint egy hosszú
tapogató a gép válla fölött belenyúlt a hátán puposodó kis ketrecbe,
ahonnan valami hevesen ellenkező, rejtelmes fekete tömeget emelt
a magasba a csillagok felé. Mikor a fekete tárgy megint lefelé
ereszkedett, láttam a zöld világítás mellett, hogy egy férfi volt. Egy
pillanatra tisztán látható volt. Erős, vöröses, jól öltözött, középkorú
férfi volt, aki három nap előtt mindenbizonyára mint nagytekintélyű
ember járt a világban. Láttam kimeredt szemeit s az inggombjaira s
óraláncára hulló fénysugarakat. Eltűnt a domb mögött és egy
pillanatig csend volt. De csakhamar ordítás és a Marsbeliek
elnyujtott örömujjongása volt hallható…
Lecsúsztam a romhalmazon, talpra ugrottam s kezeimet két
fülemre szorítva, visszarohantam a mosogatókonyhába. A
tiszteletes, aki kezeit feje fölé kulcsolva, némán kuporgott, felnézett,
amint elsiettem mellette, hangosan felkiáltott és utánam rohant.
Akkor éjjel, amint a mosogatókonyhában leselkedtünk, eltelve
borzadállyal, bár úgy éreztem, hogy sürgős szükségünk volna a
cselekvésre, hasztalanul próbáltam bármily menekülési tervet
kieszelni; de később, a második napon, nagyon világosan fontolóra
tudtam venni helyzetünket. A tiszteletes képtelen volt minden
megbeszélésre; a rendkívüli ijedelmek hatása alatt erőszakos
ösztönök rabja lett, józan eszét és előrelátását pedig elvesztette.
Valósággal állati szinvonalra sülyedt alá. Én azonban annál jobban
megembereltem magam. Amint a tényeket áttekintettem, úgy
rémlett, hogy bármily félelmetes is a helyzetünk, még sincs okunk a
feltétlen csüggedésre. Menekülésünk főreménye az a lehetőség volt,
hogy a Marsbeliek csak ideiglenes tábornak akarják használni az
üreget. Vagy ha állandó tábori hely lesz is, esetleg nem fogják
szükségesnek tartani, hogy folyton őrizzék, úgyhogy alkalmunk
nyílhatik esetleg a menekülésre. Meghánytam-vetettem gondosan
azt a lehetőséget is, nem áshatnánk-e utat magunknak az üreggel
ellenkező irányban? De az az eshetőség, hogy valami őrtálló
hadigép szemei előtt bukkanhatunk ki a szabadba, eleinte
túlságosan rettenetesnek látszott. Aztán meg ásni is egészen
magamnak kellett volna. A tiszteletes bizonyára nem segített volna.
Ha jól emlékszem, a harmadik nap láttam a megölt legényt. Ez
volt az egyetlen alkalom, mikor valósággal láttam a Marsbelieket
táplálkozni. E tapasztalat után kerültem a falrést a nap java
részében. A mosogatókonyhába mentem, eltávolítottam az ajtót s
néhány órát ásással töltöttem; oly halkan használva fejszémet, amint
csak telt tőlem. De amint pár láb mélységű lyukat ástam, a
porhanyós föld zajt csapva beomlott, úgyhogy nem mertem folytatni
a munkát. Elvesztettem bátorságomat s hosszú ideig a
mosogatókonyha padlóján hevertem, nem merve mozdulni sem. És
most már teljesen lemondtam arról a gondolatról, hogy utat ásva
meneküljünk.
Hogy mily benyomást tettek rám a Marsbeliek, arra nézve
jellemző az a körülmény, hogy eleinte nem igen vagy egyáltalán nem
is reménykedtem abban, hogy úgy fogunk megmenekülni, hogy a
Marsbelieket emberi erőfeszítéssel legyőzik majd. Csak a negyedik
vagy ötödik éjjel hallottam olyasfélét hangot, amely heves
ágyúzáshoz hasonlított.
Késő éjszaka volt s a hold fényesen ragyogott. A Marsbeliek
félrevitték az ásógépet s egy hadigépen kívül, amely az üreg
távolabbi töltésén állt és egy munkagépen kívül, amely közvetlenül
leshelyem alatt működött az üreg egyik sarkában, úgyhogy nem is
láthattam, a hely elhagyatott volt. Kivéve a munkagépből eredő
sápadt ragyogást, a rudakat és a fehér holdvilágos foltokat, az üreg
sötétségbe borult és eltekintve a munkagép éles csengésétől,
egészen csendes is volt.
Gyönyörű, derült éjszaka volt. Kivéve egyetlen egy bolygót, úgy
látszott, a hold maga vette birtokába az egész égboltozatot.
Kutyaugatást hallottam s ez a barátságos hang indított a
hallgatózásra. Hallottam is aztán egészen tisztán egy tompa
dördülést, tökéletesen olyat, mint a nagy ágyúk hangja. Hat
dördülést számláltam meg egymás után s hosszú idő mulva újra
hatot és ez volt minden.

IV.
A tiszteletes halála.

Fogságunk hatodik napján történt, hogy utoljára pillantottam ki a


résen és csakhamar egyedül találtam magam. A tiszteletes a helyett,
hogy szorosan mellém húzódva, megpróbált volna a leshelytől
eltávolítani, visszament a mosogatókonyhába. Hirtelen gondolat
villant meg bennem. Gyorsan, nyugodtan visszamentem a
mosogatókonyhába. A sötétségben hallottam, hogy a pap iszik.
Feléje kaptam a sötétben s ujjaim egy palack burgundit ragadtak
meg.
Néhány percig verekedtünk. A palack leesett a padlóra s
összetörött. Erre abbahagytam a küzdelmet s fölemelkedtem.
Lihegve, fenyegetőzve álltunk egymással szemben. Végre közötte s
a táplálék között helyezkedtem el és kijelentettem neki azt az
elhatározásomat, hogy erős fegyelmet fogok tartani.
Felosztottam az eleséget az éléskamrában annyi részre, hogy tíz
napig elég legyen. Azt akartam, hogy a pap ezen a napon ne egyék
többet. Délután gyönge erőfeszítést tett, hogy a táplálékhoz jusson.
Én elszunnyadtam; de egy pillanat sem telt bele, már fölébredtem.
Egész nap és egész éjjel szemtől szemben ültünk egymással, én
kimerülten, de elszántan, ő sírva és éhségről panaszkodva. Tudom,
hogy egy éj és egy nap volt; de akkor úgy tetszett, – s úgy tetszik
most is nekem, – mintha végtelen hosszú idő lett volna.
Így tehát összeférhetetlenségünk nyilt harcban végződött. Két
hosszú napig fojtott hangon s ökleinkkel küzködtünk. Volt idő, mikor
őrjöngve ütöttem-vertem őt; volt idő, mikor hizelgő szavakkal lelkére
beszéltem, sőt egyszer meg akartam vesztegetni az utolsó üveg
burgundival, mert esővíz-szivattyúnk volt, amelyből vizet
szerezhettem. De sem erőszaknak, sem szép szónak nem volt
foganatja; valóban elvesztette már tiszta eszét. Nem akarta
abbahagyni sem a táplálékra irányzott támadásait, sem lármás
fecsegését. Nem akartam szem előtt tartani a legelemibb
elővigyázatot sem, mely arra irányult, hogy fogságunk elviselhető
legyen. Lassacskán kezdtem belátni, hogy szelleme teljesen elborult
s hogy egyetlen társam e szűk, egészségtelen sötétségben egy
tébolyodott.
Egy-egy határozatlan emlékemből ítélve, hajlandó vagyok azt
gondolni, hogy saját elmém is el-elkalandozott olykor-olykor.
Csodás, félelmetes álmok rohantak meg, valahányszor elaludtam.
Furcsán hangzik, de csaknem azt hiszem, hogy a tiszteletes
gyöngesége és őrültsége óvott és erősített meg engem annyira,
hogy épeszű maradtam.
A nyolcadik napon a pap susogás helyett hangosan kezdett
beszélni és semmivel sem tudtam rábírni, hogy mérsékelje
beszédét.

You might also like