Escolar Documentos
Profissional Documentos
Cultura Documentos
INTRODUCTION
Training manuals provided by Knowledge Alliance Austin 2113 Wells Branch Pkwy #500A Austin, Texas 78728 (512) 989-8558 (512) 989-8580 fax
Introduction
Preface
FutureTech Training, Inc. (FTT) prepared this manual for use in the area of Training and Development for continuing education. It is intended that these materials will be used to assist students in the learning process during the class, after the class to review, and continued learning as a reference guide. This manual is NOT intended to replace the Users Guide Manual that is provided by the company with the software. This training manual was prepared using Microsoft Word 97, and Windows 95. The master copy was printed to disk using the Adobe Acrobat PDF program.
Copyright Notice
Copyright 1997 by FutureTech Training, Inc. All Rights Reserved. 040798 This publication, including the student manual, diskette, quick reference cards, and FTT Productivity Tracking, or any part thereof, may not be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, storage in an information retrieval system, or otherwise, without the prior written permission of FutureTech Training, Inc., 1106 Clayton Lane Suite 105E, Austin, TX 78723, (512) 459-0715.
Disclaimer
While FutureTech Training, Inc. makes a sincere effort to ensure the accuracy and quality of these materials described herein, all material is provided without warranty, including, but not limited to, the implied warranties of merchantability or fitness for a particular purpose. FutureTech Training, Inc. disclaims all liability for any direct, indirect, incidental or consequential, special or exemplary damages resulting from the use of this product or the products described in this manual.
Trademark Notices
FutureTech Training, Inc., FTT, and the FutureTech Training, Inc. logo are registered trademarks of FutureTech Training, Inc. Microsoft and Windows are registered trademarks of Microsoft Corporation. All other product names and services identified throughout this book are trademarks of their respective companies. No such use is intended to convey endorsement.
TEAMTech is a national partnership between United Way of America, IBM, Americorps*VISTA and Public Allies. The goal of the project is to develop strong
TEAMTech Austin
Page 2
Introduction
leadership and technological skills among non-profit organizations. Austin is one of twelve cities participating in the project. Americorps*VISTA volunteers go into the community to help enhance human service agencies competency in technology through different avenues, such as computer software training and the installation of donated computer equipment. This is the second year of the TEAMTech Austin project. Last year TEAMTech Austin focused on a pilot project, creating an Information and Referral database network called InfoLink. The closed InfoLink Network was made available to non-profit agencies to help facilitate collaboration between agencies, and to make the agencies more effective at distributing information to the public. This year the United Way Capital Area plans to expand the InfoLink pilot project by putting it on the World Wide Web. It is our hope that this will make agency information more easily available and accessible to the public. In addition, our goal for this year is to provide Microsoft Access training to non-profit agencies in order to gain an increased knowledge of the software to better use it. Also, TEAMTech members will provide assistance to agencies developing a technology plan to sustain their agencies into the next millennium. We will fulfill this goal partly through the creation of a technology resource manual.
TEAMTech Austin
Page 3
Introduction
Introduction
Welcome How to Use This Manual
The purpose of this manual is to make your software application easier to understand so you can apply the information to your work. The following terms and symbols will help you identify specific sections of this book.
LESSONS
The bold, italicized, large print at the introduction of each chapter represents a new topic. Each training guide is divided into several lessons for easy reference after class. Each lesson is divided into many topics that are labeled by a bold, italic heading. These are to assist you during and after class to find specific topics on the subject matter. Subtopics are also bold and italic and will be found within each topic to emphasize the information inside the main areas.
Topic Headings
Subtopics
Exercises
session.
The smile symbol throughout the book refers to an exercise to be done in class or during a practice
Warning
watch out for in your work.
Glossary
The glossary found at the end of this manual is a collection of terms and definitions from this book.
TEAMTech Austin
Page 4
Table of Contents
Table of Contents
Lesson One: Getting Started In Access........................................................ 9 Course Objectives .................................................................................. 10 What is Access?..................................................................................... 11 Start Access ........................................................................................... 13 The Access Interface.............................................................................. 14 Understanding Database Terms............................................................. 16 Create a Database with the Database Wizard ....................................... 17 Creating a New Database from Scratch ................................................. 21 Lesson Two: Working With Tables ............................................................... 23 Create a Table........................................................................................ 24 Field Data Types .................................................................................... 26 Set the Primary Key................................................................................ 28 Table Wizard vs. From Scratch ........................................................... 29 Enter Data .............................................................................................. 32 Modify the Table Design......................................................................... 35 Define Table Relationships .................................................................... 37 Edit Data in a Table................................................................................ 40 Edit Data With the Zoom Box ................................................................. 42 Use AutoCorrect to Edit Data ................................................................. 43 Lesson Three: Locating Records .................................................................. 45 The Find Feature.................................................................................... 46 Sort Data ................................................................................................ 48 Filter the Data......................................................................................... 51 Filter by Form ......................................................................................... 52 Filter by Selection................................................................................... 53 Save a Filter as a Query......................................................................... 54 Lesson Four: Forms in Access...................................................................... 55 What is a Form? ..................................................................................... 56 The Form Wizard ................................................................................... 57 Use a Form to Locate Records............................................................... 60 Change the Design of a Form ................................................................ 61 Use AutoFormat with Forms ................................................................... 64 Lesson Five: Querying Data .......................................................................... 65 What is a Query? ................................................................................... 66 Use the Dynaset to Edit Data ................................................................. 70 Use an Expression as Criteria................................................................ 71 Save the Query Object ........................................................................... 73 Perform Calculations with a Query ......................................................... 74 Grouping and Totals of Queried Data .................................................... 75
TEAMTech Austin
Page 6
Table of Contents Query Several Tables............................................................................. 76 Lesson Six: Reporting the Data..................................................................... 79 What is a Report? .................................................................................. 80 The Report Wizard ................................................................................. 82 Customize the Report............................................................................. 85 Preview and Save a Report.................................................................... 87 Lesson Seven: Importing Data ...................................................................... 89 Import Data from Microsoft Excel ........................................................... 90 Exit Access ............................................................................................. 92 Index................................................................................................................. 93 Glossary........................................................................................................... 95
TEAMTech Austin
Page 7
TEAMTech Austin
Page 9
Course Objectives
This course was designed for the user who has fundamental experience in Windows 95.
Before Class
All students participating in this course should be familiar with the basic operations of Windows 95 and the use of a mouse.
After Class
Upon successful completion of this course the student will be able to complete the following objectives:
Identify the parts of the Access screen Create a Table Object in a Database Identify Data Field types Enter and Edit data in a Table Set a Primary key for a Table Define Table relationships Filter / Sort / and Find records Create and Use a Form Create and Use a Query Create and Customize a Report Import data from Excel
TEAMTech Austin
Page 10
What is Access?
The function of a database is to store and retrieve information in an efficient manner. The most common example of a database is an address book used for storing names, addresses, and phone numbers. The address book is an example of a flat database. A flat database is one in which all of the information is stored in one file. With a flat database, it is necessary to enter the same information repeatedly throughout the entire database. Microsoft Access, on the other hand, is an example of a relational database. The relational database is more complex than a flat database because all the information is stored in multiple files. All relational databases are based on the concept of storing information without duplication. In a relational database, it is only necessary to make changes in one place, and then all other areas adjust accordingly.
TEAMTech Austin
Page 11
Lesson One: Getting Started in Access A relational database stores all information in multiple database files. Each database file contains different pieces of information. For example, one database can hold customer information, while sales information is in a second database, and product information is in a third database. By placing information in separate database files, there is an elimination of the need for redundant data entry. The Customer, Inventory, and Products database files are connected to each other through a common field. This connection is called a join and creates a bridge for Access to use for pulling information for search requests. The example below shows how three database files connect by a common field.
The Customer and Products databases join through the Customer ID Number field. The Inventory then joins to the Products database through the Inventory Code field.
TEAMTech Austin
Page 12
Start Access
To start Access 97 from Windows 95, go to Start / Programs / Access.
Start Access
1. Go to Introduction Folder on your desktop 2. Double-click on Lesson1 to select todays class database 3. Access will load the database
TEAMTech Austin
Page 13
Control Menu Icon: The control menu icon appears in the upper left-hand corner of open windows. There are two different types of control menus in Windows 95: one for the active application and one for each of the documents. Use the control menu icon to close a window by double-clicking on it. Menu Bar: The menu bar appears directly below the title bar. The menu bar houses all the menus that needed to operate in the current window. Access the menus by clicking the desired menu or by using the ALT key combination with the appropriate underlined letter.
Minimize, Maximize, Close, and Restore: These buttons appear in the upper right hand corner of the screen. The Minimize button reduces a window to an icon.
The Maximize button enlarges a window to take up as much space as allowed, usually the whole screen.
TEAMTech Austin
Page 14
Lesson One: Getting Started in Access Scroll Bars: The scroll bars appear on the right and bottom of the screen. These bars are for moving around the screen. There are several ways to scroll: click the scroll arrows, click inside the scroll bar, or drag the scroll box.
The Database Window: When a database opens in Access, it opens into the Database Window. This window contains all of the necessary objects for the creation of a functional, relational database. Navigate to this window at any time with the F11 keystroke.
Toolbars: The toolbars in Access provide a quick method of utilizing features by eliminating the need to always use the menu bar. The toolbar changes frequently in Access, depending on the view and object that currently in use. The toolbar pictured below is the standard toolbar in the database window.
Status Bar: The status bar located at the bottom of the screen displays important information. Before the creation of a database, Access will be waiting in the Ready mode.
TEAMTech Austin
Page 15
Table
Query
Form
Report
Field
Record
Database A database in Access is the sum of all objects in the database window. The entire database is saved as one file with an extension of MDB, which stands for Microsoft Database.
TEAMTech Austin
Page 16
TEAMTech Austin
Page 17
Lesson One: Getting Started in Access 5. When the following dialog box appears over the Database window, click Next
6. Add Childrens Names to the list of fields in the Table. Select, Yes include sample data (including sample data can assist in learning to use the database more quickly).
TEAMTech Austin
Page 18
Lesson One: Getting Started in Access 7. Click the Next button to move to the next step 8. For the screen display, choose International, and click Next
9. Choose the Bold Report style, and click Next 10. Name the database Addresses, and click Next
TEAMTech Austin
Page 19
Lesson One: Getting Started in Access 11. Choose the option for starting the database after the Wizard builds it, and click Finish 12. View the Address Book
TEAMTech Austin
Page 20
TEAMTech Austin
Page 21
TEAMTech Austin
Page 23
Create a Table
The first step in creating any database is the creation of Tables. Each Table consists of rows and columns. The fields (columns) of the Table are defined during the creation of the Table. The fields need to reflect the types of information to be collected about each entry, such as product, order, etc. Prior to creating the Table it is a good idea to plan out the strategy for the Table, and for the entire database. The planning stage of the creation process should receive ample attention without dominating the entire project. It is difficult to plan out the perfect database. Plan out as much as possible, but be aware that Access makes it easy to make changes to the database later, if necessary
Rules for Table Creation Design the Table to contain information about only one type of data (donors, corporate sponsors, donations, and etc.). Designate a Primary Key to identify each record individually. This key should never have a duplicate entry. A counter field works nicely as an arbitrary key. Avoid redundancy in field creation. If the Contact name is in the Donor Table, do not place a Contact name field in the Donations Table. Avoid repeating fields like item 1, item 2, item 3. A sub-form object can take the place of these fields.
TEAMTech Austin
Page 24
Table Views
There are two options available for viewing Tables, the Datasheet view and the Design View. When viewing Tables, toggle between the two views by clicking the Datasheet view button or the Design view button. Datasheet View: The Datasheet view is a window that displays data from a Table in a row and column format. The Datasheet view is where the user edits fields, adds and deletes data, and searches for data. Click the Datasheet view button to change to the Datasheet view.
Design View: The Design view is where the Table layout is designed. Click the Design view button to change to the Design view.
TEAMTech Austin
Page 25
The following Table defines the field types used in Tables within Access. Field Type Text Description Holds up to 255 characters of information. Input can be both alpha and numeric Holds up to 64kilobytes of information. Used to store large amounts of text as a memo. Numeric values of 1, 2, 4, or 8 bytes Dates and times of 8 bytes can be used in calculation Monetary values up to 8 bytes in length Numeric value automatically incremented by Access for each record added Boolean values, one bit in length, used for true / false fields OLE objects from other applications up to 1 Gigabyte in length Email addresses, Internet URLs Example Company Name, Address, Phone Number Notes field in a customer Table Quantity Sold or in Inventory Date of sale Price Customer ID, Order Number, PO Number Invoiced, Health Plan, Mailing List Picture of the employee, picture of the product TEAMTech@uway-austin.org
Memo
Yes / No
OLE Object
Hyperlink
TEAMTech Austin
Page 26
TEAMTech Austin
Page 27
Set Multiple Primary Keys It is possible to set more than one field as the Primary Key. This instructs Access that together, the two fields need to be unique. For example, setting the Last name and the First name as the multiple Primary Keys means that no two records can have the same First and Last name. Set the multiple keys by selecting all of the fields while holding down the CTRL key, and then click the Primary Key button.
TEAMTech Austin
Page 28
6. Name the Table Projects and let Access set the Primary key
TEAMTech Austin
Page 29
Lesson Two: Working With Tables 7. Click Next to move to the next step
8. Select the Modify the Table design option, and click Finish 9. An example of how the Table should look appears below
10. Switch to the Datasheet view of the Table 11. Close the Table after viewing
TEAMTech Austin
Page 30
TEAMTech Austin
Page 31
Enter Data
Enter data in Access from three different locations: the Table Datasheet View, the Forms, and the Query Dynasets. Remember that when entering data in any of these locations, the data is actually placed in the underlying Table. Add new records by clicking the New Record button on the toolbar. In the datasheet view, the following keystrokes are helpful for editing and navigating in Access.
Data Entry Short Cuts Ctrl + ; Current Date Ctrl + : Current Time Ctrl + Alt + Space Default field value Ctrl + Prev. field value Ctrl + Enter New line in field Ctrl + plus sign Add a new record Ctrl + minus sign Delete record Shift + Enter Save Record Spacebar Toggle check box Navigating Keystrokes in a Datasheet Ctrl + Home First Field in First Record Ctrl + End Last field in last record End Last field in current record Home First cell in current record End in text box End of current line Home in text box Beginning of current line Tab, or Right Arrow Next Field Shift + Tab Previous Field Right and Left Arrow Next and Prev. field Up and Down Arrow Prev. and Next record Pg Up Up by one screen Pg Dn Down by one screen Ctrl + Down Arrow Current field in last record Ctrl + Up Arrow Current field in first record Ctrl + Pg Up Right one screen Ctrl + Pg Down Left one screen
The symbols pictured below are seen during data entry in Access. Each symbol represents the current status of the record.
TEAMTech Austin
Page 32
Lesson Two: Working With Tables Navigate with the Mouse It is possible to navigate in the Datasheet view by using the mouse. The movements in an Access datasheet are similar to the navigation movements in an Excel spreadsheet. In the Datasheet view of the Table objects, scroll through the records using the scroll bars and use the navigational buttons located at the bottom of the window. Use these buttons to go quickly to a record in the Table.
Save Records Access saves data during entry record by record. If data is edited in a field and then moves off of the record by clicking or pressing the up or down arrow, Access automatically saves the changes to the record. If there is ever any doubt as to whether the current record is saved or not, look for the symbol to the left of the record. The symbols on the previous page explain the status of the record. Without moving off of the record, save the changes to the record by pressing the keystroke SHIFT + ENTER. This instructs Access to save the changes to the record.
Navigate in a Table
1. Close down the Projects Database we created 2. Open the Table named Donors in the datasheet view 3. How many total records are there? 4. Navigate to record number 332
TEAMTech Austin
Page 33
Street Address 451 Bedrock Way 333 Desert Ave. Your Information Here
State TX TX
TEAMTech Austin
Page 34
WARNING: Access does not make changes to the fields in Forms, Reports, and Queries when a change is made to the Table. These changes must be made manually.
TEAMTech Austin
Page 35
TEAMTech Austin
Page 36
Delete a Relationship Delete relationships by clicking on the relationship line and then pressing delete on the keyboard. If Access cannot delete the relationship, it displays a dialog box and gives the reason. WARNING: Deleting a relationship could severely affect Forms, Queries, and Reports in the database if they rely on data fields from the connected Tables. Enforce Referential Integrity TEAMTech Austin Page 37
Lesson Two: Working With Tables This option tells Access that no record in any Table should exist if there is not a corresponding record in the related Table. For example, if one Table includes the employee general information and the other Table contains the detailed information on their pay structure, it may be a good idea want to enforce referential integrity. This would prohibit an employee from existing without a pay structure, and it would prohibit a pay structure from existing without a related employee record. Referential Integrity can only be enforced on two fields that have the same data type---for example, text and text, or number and number.
Create a Relationship
1. From the database window, click the Relationships button 2. Notice the relationship set up 3. Double click the joining line 4. Notice the relationship type, and then click OK 5. Drag Fundraiser ID from the Projects Table to the Donations Table (drop it on Fundraiser ID) 6. Click Create to create the relationship 7. Click on Referential Integrity 8. Close down the Relationships window and save the layout
TEAMTech Austin
Page 38
TEAMTech Austin
Page 39
TEAMTech Austin
Page 40
Lesson Two: Working With Tables Undo The Undo feature of Access works the same as it does in other Microsoft applications. The Undo feature will only undo the last action performed. It will not undo changes performed on multiple fields in a record when each field was edited one-by-one. Undo Field/Record The Undo Record feature will undo any and all changes made to any fields in the current record. This feature cannot undo changes to a record if the record has been saved.
TEAMTech Austin
Page 41
TEAMTech Austin
Page 42
To see how this feature works, type teh. AutoCorrect will change the word after the spacebar is pressed.
TEAMTech Austin
Page 43
TEAMTech Austin
Page 45
Before entering the Find dialog box, it is usually wise to activate the field to be searched. This makes it possible to select the Search Only Current Field option in the Find dialog box. Narrowing the search down to one field decreases the amount of time it will take to find text. Search In Current Field Choose for Access to search only the current field or all of the fields in the Table. Instructs Access where to begin searching: above or below the current record in the Table or all of the Table. Access will find the text only if it matches the case. Tells Access to find the text only if it is formatted the same as what is typed in the Find What text box. For example, dates are stored as numbers but may be displayed as 5 Jan 92. Select the match type for the searchpart of field, the whole field, or the start of a field.
Search
Match Case
Match
TEAMTech Austin
Page 46
3. Click on the Find button on the toolbar 4. Type in the name Susan 5. Select Any Part of Field from the Match list 6. Click on the Find Next button 7. Notice how Susanna is also found 8. Click Find Next until you reach the end of the records 9. Click OK once you reach the end of the records
TEAMTech Austin
Page 47
Sort Data
All data in Tables can be sorted according to different fields. When sorting data, it is possible choose to use the Quick Sort buttons on the toolbar to sort according to one field. There is also a Filter / Sort button to create sorts based on more than one field. The default sort for any Table is the order of entry. The only time this changes is if a Primary key has been established in the Table. With a Primary Key set up, this field now becomes the default sort for the Table. Quick Sort After activating the appropriate field in the Table or Form view, click the quick sort button for ascending or descending order. This method of sorting does not allow sorting on more than one key.
TEAMTech Austin
Page 48
Lesson Three: Locating Records Sort on More Than One Field By utilizing the Records/Filter/Advanced Filter / Sort option on the menu, there are more advanced sorts that sort records on more than one field.
The Filter dialog box consists of a window with a list of fields from the Table and a grid in the bottom half of the window. Drag fields from the field list to the grid to determine which fields the Table will be sorted by and the sort order. Fields can also be double-clicked, typed, or selected from the drop down list in the grid at The bottom of the screen.
TEAMTech Austin
Page 49
TEAMTech Austin
Page 50
TEAMTech Austin
Page 51
Filter by Form
Filtering by Form makes it possible to create a filter by typing the values being looked for in a fill in the blank Form or datasheet. Many people find this feature easier to use than Advanced Filter/Sort. Once the Table, Query, or Form to be filtered is open, click the Filter by Form button on the toolbar. A blank Form or datasheet containing the field names displays. Select the field that will specify criteria that records must meet to be included in the filtered set or records. Select the search value from the dropdown list in the field, and apply the filter. It is possible to specify alternative values that records can have and still make it through the filter by clicking on the Or tab at the bottom of the window and selecting the other value.
TEAMTech Austin
Page 52
Filter by Selection
With Filter by Selection, it is possible to specify which set of records is to be worked with by highlighting the search value inside the Form or datasheet. Then, click the toolbar. Once the focus narrows to a specific set of records, narrow it even further by selecting another value from within the subset of records. Filtering by Selection instantly selects the data that matches the current field or selection. Filtering Excluding Selection is similar to filtering by selection; it selects the data that does not match the current field. This is done by rightclicking on the field and choosing Filter Excluding Selection. Suppose there is a record that contains some data that is being looked for. To find other similar records, click in the field containing the desired information and click the Filter by Selection button on the toolbar.
TEAMTech Austin
Page 53
By saving the filter as a Query, there is a new Query object available for use at any time. By saving it as a Query object, it also becomes possible to create Forms and Reports based on the Query. Save the filter by returning to the Advanced Filter/Sort window and selecting File / Save Filter as Query from the menu bar.
TEAMTech Austin
Page 54
TEAMTech Austin
Page 55
What is a Form?
Forms are generally used in Access for viewing one record at a time. View more than one record at a time by using a tabular Form or a subform. The Forms in Access and the available design capabilities are heralded in the software industry as the best. The Forms in Access can become quite complex from a design standpoint, and very friendly from an end user standpoint. Forms are normally set up for the end user as a graphical interface for performing data entry. To move from one field to the next in a Form, either press the ENTER or TAB keys. To move backwards through the fields press SHIFT + TAB or SHIFT + ENTER. Navigate to the next or previous record by pressing the Page Down or Page Up keys, respectively. These keystrokes apply only if the Form is one screen or less.
TEAMTech Austin
Page 56
The Form Wizard is by far the best way to start Forms. Once Access has created the basic layout for the Table, switch to the Design View of the Form to alter the Form to meet the specifications.
TEAMTech Austin
Page 57
TEAMTech Austin
Page 58
TEAMTech Austin
Page 59
2. Click the Find (binoculars) button on the toolbar 3. Type Second in the Find What Edit box 4. Select All in the Search list 5. Select Any Part of Field in the Match list 6. Click the Find Next button 7. Click the Close button to exit the Find feature
TEAMTech Austin
Page 60
Detail
TEAMTech Austin
Page 61
Lesson Four: Forms in Access Design View Pointer Shapes The pointer will take on many different shapes when the mouse moves in the design view. These shapes allow different operations to be performed with the fields in the Form. Mouse Description A large flat hand Usage in Form Design Used to move a data field and its label to a new location in the Form. Place the mouse pointer along the edge of a selected field.
A hand with the pointer finger extended Used to move only this field or object to a new location. Place the mouse pointer on the handle in the upper left corner of the selected field An I-beam Used to drop an insertion point for editing text in an object. Place the mouse pointer in the middle of a selected field and then click. Used to resize fields and other objects by clicking and dragging. Place the mouse pointer on top of a resize handle on a selected object.
A bi-directional arrow
TEAMTech Austin
Page 62
TEAMTech Austin
Page 63
TEAMTech Austin
Page 64
TEAMTech Austin
Page 65
What is a Query?
The Query capabilities reveal the tremendous power of not only a relational database, but Access itself. The Query provides the user with answers to questions about the data. Queries allow the user to see the desired data in any specified order. It is also possible to perform calculations in data and make global changes to Tables. When faced with a question like this: I would like to see a list of all of our customers in California who purchased more than $1,000 worth of merchandise between the months of July and September of last year, Access can provide a response in a matter of seconds! The resulting data is referred to as the Dynaset for the Query. This dynamic set of data will constantly change based on changes made to the underlying Table. Any changes that are made to the Dynaset will also change the records in the underlying Table.
While viewing the Query objects in the database window, click the New button. The resulting dialog box gives two options: to use the Query Wizard to create one of four types of Queries, or to create a new Query from scratch.
TEAMTech Austin
Page 66
Lesson Five: Querying Data Query Wizard vs. From Scratch The Query Wizard is probably the least useful of the Wizards. It can be confusing at times. It is nice to be able to choose from four Query Wizards, but it may be more efficient to create Queries from scratch. The Four Query Wizards Query Wizards offer an easy way to perform special-purpose Queries. Simple Query Retrieves data from one or more Tables and displays the results in a datasheet where the user can update the records (with some restrictions). It is also possible to use a Query to group records and calculate sums, counts, averages, and other types of totals. Displays summarized values (sums, counts, and averages) from one field in a Table and groups them by one set of facts listed down the left side of the datasheet and another set of facts listed across the top of the datasheet. Determines whether a Table contains duplicate values in one or more fields. Use the results to determine if there are duplicate records in the Table, or to determine which records in the Table share the same value. Finds records in one Table that do not have related records in another Table.
Crosstab Query
TEAMTech Austin
Page 67
Lesson Five: Querying Data Once the design of a Query is entered, Access will prompt ask which from which Tables or Queries to pull data. It is possible to pull data from one or more Tables, as long Access can establish a common link between the Tables.
The Query By Example Grid It is possible to create all Queries in Access by using the Query By Example (QBE) grid located in the Design view of Queries. Drag fields down to the QBE grid, double-click them, or select them in the grid from the list box. Field Sort What is the name of the field from the Table? Should data be sorted ascending or descending according to this field? Should this field show up in the Dynaset?
Show
Criteria Is there a criteria as to whether this field shows up in the Dynaset or not?
TEAMTech Austin
Page 68
TEAMTech Austin
Page 69
TEAMTech Austin
Page 70
Wildcards Access recognized three wildcards. The asterisk (*) can stand for zero to multiple characters. The question mark (?) represents one character. The pound symbol (#) represents one digit of a number. Use these wildcards to extract records that meet general criteria. The following examples clarify the results of using wildcards. Wildcard Expression Field Name B* Last Name L?s* Description Result of Query All Last names that start with a B Lisa Lost in Space Las Vegas L5s32-LM All January 30 dates in the 90s
1/30/9?
Date
TEAMTech Austin
Page 71
Is
Between Use the between function to establish an inclusive range for the criteria. For example, use it to see all transactions Between 1/1/94 And 12/31/95.
TEAMTech Austin
Page 72
TEAMTech Austin
Page 73
TEAMTech Austin
Page 74
TEAMTech Austin
Page 75
TEAMTech Austin
Page 76
Table Names
Under the View menu, there is a Table Names option. This option is used to add a row to the QBE grid. This new row will show which Table the field originated from. This information is important for Querying multiple Tables.
TEAMTech Austin
Page 77
TEAMTech Austin
Page 79
What is a Report?
Reports in Access are created for presentation of Tabled or queried data in a professional manner. Programmers in Visual Basic and C++ utilize Access for printing Reports because of its tremendous ease and flexibility. Reports are based on either a Table or a Query. Any field can be dropped into the Report from the available list of fields. The Report is broken down into several sections. The sections are listed and defined below. Report Header Anything in this section is placed at the top of the Report, and it will only show up at the top of the first page. Generally, the name of the Report and the date go in this section. Page Header Text and objects in this section will show up at the top of every page. Most often, the column headings for the data appear in this section.
Group Header If the Report is a Groups / Totals Report, this section will generally contain the heading for a group. As an example, the department name would appear here if a list of employees by department is shown. Detail The detail section is normally the largest section of the Report. Place data fields that will print out the data in each record of the Query or Table here. This area displays at the end of every group. It will generally contain any totals that apply to the entire group. Information in this section will appear at the bottom of every page. Users will often place the page number in this section.
Group Footer
Page Footer
Report Footer Information in this section appears only at the end of the Report. In a Groups / Totals Report, this section could contain the grand totals for information that was sub-totaled at the end of each group.
TEAMTech Austin
Page 80
Lesson Six: Reporting the Data The picture below displays the design view for a grouping Report. Upon first glance at a design for a Report, it can appear somewhat intimidating. The concepts of the Report are actually quite simple, as explained on the previous page.
TEAMTech Austin
Page 81
AutoReport: Columnar
AutoReport: Tabular
TEAMTech Austin
Page 82
6. Double-click the Donation Date field 7. Click the Grouping Options button and select Month
TEAMTech Austin
Page 83
Lesson Six: Reporting the Data 8. Click the Next button 9. Click the drop-down arrow and choose the Fundraiser ID field and the Donation field as the fields by which to sort 10. Click the Summary Options button, select the sum for Donation and In-kind Value, click OK, and then click Next 11. Select the Outline 1 layout, and click Next 12. Select the Corporate style, and click Next 13. Type in the title My Donations by Month 14. Select Preview the Report 15. Click the Finish button
TEAMTech Austin
Page 84
Resize a Section
In the Design View of the Report, the Toolbox button on the toolbar opens the Formatting (Form/Report Design) Toolbar for additional formatting options.
TEAMTech Austin
Page 85
Customize a Report
1. Go to Design View of the Report 2. Click the Heading object to select it, and drag it so that it extends over the entire width of the Report 3. Click the Center button on the toolbar 4. Drop down the list of available fonts and select Arial 5. Change the point size of the font to 18 6. Drag the Donation Date Footer to the same height as the header 7. Select both sums by using a Shift + Click 8. Click each sum object in the footer and extend the height 9. Delete the Donation Date from between Donation and In-Kind Value (on the Header and the Detail) 10. Resize the Donation and the In-Kind Value fields from the right (on the Header and the Detail) 11. This action will line up the numbers with the headings 12. The Report should resemble the picture below
TEAMTech Austin
Page 86
TEAMTech Austin
Page 87
TEAMTech Austin
Page 89
Access opens the Import dialog box and asks the user to select the location of the file, the file type, and the file name.
TEAMTech Austin
Page 90
TEAMTech Austin
Page 91
Exit Access
To exit out of Access, close and save all databases, and then go to File / Exit or use the ALT + F4 keystroke.
TEAMTech Austin
Page 92
Glossary
Index
Add Field Lines / Color, 85 AutoCorrect, 43 AutoFormat, 64 AutoReport: Columnar, 82 AutoReport: Tabular, 82 Blank Database, 21 Chart Wizard, 82 Control Menu Icon, 14 Counter, 26 Creating a New Database, 21 Creating a Table, 24 Creating Relationships, 37 Criteria, 68, 71, 72 Criteria Symbols, 71 Crosstab Query, 67, 96 Currency, 26 Customize a Report, 86 Customizing the Report, 85 Data Entry Symbols, 32 Database, 16, 96 Database Terms, 16 Database Window, 15 Database Wizard, 17 Datasheet view, 40 Datasheet View, 25, 32 Date / Time, 26 Delete a Field, 85 Deleting a Relationship. See Table Relationship Design of a Form, 61 Design view, 35 Design View, 25, 61, 64 Design View Pointer Shapes, 62 Detail, 61, 80 Dynaset, 32, 66, 69, 70, 74 Edit Data, 70 Editing a Relationship, 37 Editing Data, 40, 42 Entering Data, 32 Entering Records, 34 Exit, 92 Expression, 42, 71, 72 Field, 16, 26, 27, 32, 41, 47, 49, 68, 71, 85, 102 Field Data Types, 26 Filter by Form, 52 Filter by Selection, 53 Filter Data, 51 Filtering, 51 Find Feature, 46, 47 flat database, 11, 98 Form, 16, 56, 60 Form Wizard, 57, 58, 59 Forms, 64 Glossary, 95 Group Footer, 80 Group Header, 80 Grouping and Totals, 75 Header and Footer, 61 Import Data, 91 Importing Data, 90 Label Wizard, 82 Locate Records, 60 Locating Records, 45 Match Case, 46 Maximize, 14 Memo, 26 Menu Bar, 14 Minimize, 14 Move a Field, 85 Multiple Primary Keys, 28 Navigating With the Mouse, 33 Number, 26 Object, 16, 26, 50, 73, 97, 101 OLE Object, 26 Page Footer, 80 Page Header, 80 Performing Calculations, 74 Primary Key, 28, 39 Print Preview, 87 QBE grid, 42, 68, 72, 74, 75, 77 Query, 16, 54, 66 Query By Example Grid, 68 Query Wizard, 66, 67 Querying Several Tables, 76 Quick Preview, 87
TEAMTech Austin
Page 93
Glossary
Quick Sort, 48 Record, 16, 98 Referential Integrity, 38 relational database, 11, 102 Report, 16, 80, 98 Report Footer, 80 Report Header, 80 Report Sections, 80 Report Wizard, 82 Reporting the Data, 79 Resize a Field, 85 Resize a Field Section, 85 Restore, 14 Save a Report, 87 Saving a Filter, 54 Saving a Report, 87 Saving Records, 33 Saving the Query, 73 Scratch, 31 Scroll Bars, 15 Set a Primary Key, 28 Sort Data, 48, 49 Sorting, 50 Start Access, 13 Status Bar, 15 subform, 56 Table, 16 Table Creation, 24 Table Design, 35, 36 Table Names button, 77 Table Relationships, 37 Table Wizard, 29 tabular form, 56 Text, 26 Title Bar, 14 Toolbars, 15 Toolbox button, 85 Undo, 41 Undo Record, 41 Wildcards, 71 WYSIWYG, 87 Zoom Box, 42
TEAMTech Austin
Page 94
Glossary
Glossary
A
Action The basic building block of a macro. A self-contained instruction that can be combined with other actions to automate tasks. Active A command in a menu, window, or icon that appears inverted or in dark letters. Application A program used for performing a certain type of work, such as word processing, spreadsheets, graphics, projects, presentations, databases, and desktop publishing. This term is used interchangeably with "Program." There are both Windows Applications and Non-Windows Applications. Arrow Keys The keys used to navigate around the screen. They are usually located between the number keypad and the typewriter pad on the keyboard. There is an up, down, left, and right arrow key.
B
Binary A number system that uses only combinations of 0 and 1. These digits can be used to represent off and on or true and false. The binary number system is what all digital computers use. Boolean An expression that can be evaluated as being either true (non-zero) or false (zero). The field data type Yes / No is Boolean; Yes = 1, No = 0.
Burn-in A condition a monitor can get that causes faded images to remain on the screen causing damage to the display. Using a screen saver may prevent this situation. Byte A unit of measure that consists of eight bits. This measurement is equivalent of one character, number, or punctuation mark.
TEAMTech Austin
Page 95
Glossary
C
Cascade A way of arranging open windows on the Program Manager so that they overlap, with only the title bar showing. Chart A graphical representation of data in a Form or a Report. Also called graphs. Check Box A small, square box within a dialog box used to toggle an option on or off. When the check box is selected, an X appears in the box. Close To remove or terminate an application, windows, or dialog box. Use the Control Menu Icon or the File option on the menu bar to close. Condition Part of the criteria that a field must meet for searching or filtering. Control Menu Icon The icon in the upper left corner of every window with a gray minus sign that is used primarily for closing a window. Criteria Criteria are restrictions placed on a query or an advanced filter to identify the specific, desired records. Crosstab Query Displays summarized values (sums, counts, and averages) from one field in a Table and groups them by one set of facts listed down the left side of the datasheet and another set of facts listed across the top of the datasheet. Cursor A marker on the screen that indicates where the next typed characters will appear.
D
Database A database in Access is the sum of all objects in the database window. The entire database is saved as one file with an extension of MDB, which stands for Microsoft Database. Datasheet View The Datasheet view is a window that displays data from a Table or Form in a row and column format. The Datasheet view is where the user edits fields, adds and deletes data, and searches for data. Default The default is the expected response in a dialog box.
TEAMTech Austin
Page 96
Glossary
Design View The Design view is where the Table and Form layout is designed. Desktop This is the background of the computer screen. It is from here that all windows, icons and dialog boxes open. Dialog Box A window that opens after a command is made, in order to request more information and supply other options. Any menu command that has an ellipses (...) will be followed with a dialog box. Document Anything created in an application. A document could be a letter, memo, spreadsheet, or graphic picture. Double-click The action of pressing the mouse button twice in a continuous motion. This motion is used primarily to open or close a window. Dynaset The resulting data of a Query. This Dynaset (dynamic set) of data will constantly change based on changes made to the underlying Table. Any changes that are made to the Dynaset will also change the records in the underlying Table.
E
Embedded Object Anything produced in one document and inserted into another document. Many times embedded objects are taken from one application and placed in a different application. Expression Any combination of operators, constants, literal values, functions, and names of fields, controls, and properties that evaluates to a single value. Use expressions as settings for many properties and action arguments to set criteria or define calculated fields in Queries, and to set conditions macros. Extension The end of a filename that begins with a period followed by three characters. An extension indicates the file type. Many applications apply a default extension to the given filename.
TEAMTech Austin
Page 97
Glossary
F
Field A field is the smallest unit of information in a database. The first name of a customer is an example of a field entry. File A collection of data information that has been created and saved on a disk with a given name. File Format The attributes and structure of a particular file. A file formatted in one application may not be readable in another application due to the differences in the file formats. Flat Database A flat database is one in which all of the information is stored in one file. With a flat database, it is necessary to enter the same information repeatedly throughout the entire database. Floppy Disk A removable disk that can be used to store data. Font Any specific attribute given to a typed character in order to alter its size and design. Footer Text that is placed at the bottom of a document and appears on all following pages. Form A Form is generally used to look at one record at a time on the screen. Forms are used for easy data entry. Format (1) The way a document is arranged in a page or organized in a file. (2) The alteration of a disk to prepare it to store information.
G
Graphical User Interface (GUI) A system that provides the means to communicate with the computer through the use of graphics such as icons, symbols, windows, and menus.
H
Header Text that is placed at the top of a document and appears on all following pages. Help System
TEAMTech Austin
Page 98
Glossary
A series of screens which consist of information about an application or a given topic. Highlight A selected area used to distinguish text, graphics or any other information in order to perform a certain operation such as edit, move, or copy .
I
I-beam The mouse shape which allows the user to work in a text active area. Icon A graphical symbol which represents a function, application or document. Insertion Point The active position in a document or line of text represented by a flashing vertical bar. Input Data entered into the computer in order to be processed. Some input devices are the keyboard, mouse, and scanner.
J
Jump Text Information in a help screen which allows the user to advance to another topic to obtain additional help. Join The connection between linked databases.
K
Keyboard Shortcut The keyboard assignment of a mouse action executed as an alternate and often faster method of performing menu commands. Kilobyte A unit of measure to determine a computers storage and memory capacity. One kilobyte (K) is equivalent to 1,024 bytes.
L
TEAMTech Austin Page 99
Glossary
List Box A part of a dialog box which reveals a list of options and available choices. Local Printer The printer connected directly to one port of the computer.
M
Macro An action or set of actions used to automate tasks. Maximize Button The icon in the upper right corner of a window which enlarges the application or document to its full size. Megabyte A unit of measure which determines a computers storage and memory capacity. One megabyte (MB) is equivalent to 1,048,576 bytes. Menu The area of a window where commands are selected. The menu bar is located under the title bar. Minimize Button The icon in the upper right corner of a window which reduces the application or document to its smallest size, and an icon is created to represent it. Monitor A visual output device containing a video screen similar to a television set. Mouse A hand-controlled, input device which is used to select commands, text, and screen objects. Multitasking Running more than one application at the same time.
N
Network A group of connected computers that use the same software which share equipment and exchange information.
TEAMTech Austin
Page 100
Glossary
Null A value that indicates missing or unknown data in a field. Numeric Keypad A group of numeric keys on the keyboard that includes cursor movement keys. Only when the Num. Lock is on can the keys be used to enter numeric values.
O
Object Tables, Queries, Forms, Reports, Macros, and Modules are all termed objects. Each object stores different types of information used in the database. Object Linking and Embedding An operation involving cutting and pasting in which a link is created from one document or application to another. Operator A symbol or word, such as > and Or, that indicates an operation to be performed on one or more elements. Access has several classes of operators, including arithmetic, comparison, concentration, and logical operators. Option Button A small round button in a dialog box. A dark circle in an option button indicates that the option is selected. In a group, only one option button can be selected.
P
Primary Key The Primary Key is the field whose value or values uniquely identifies each record in a Table. In a relationship, the Primary Key refers to specific records in one Table from another Table. The Primary Key field can not be duplicated in the Table. Pull-Down Menu A list of commands that appear after the main menu is selected.
Q
QBE Grid Query By Example (QBE) grid located in the Design view of Queries. Query A Query is an inquiry into data. A Query allows the user to ask a question of the data.
TEAMTech Austin
Page 101
Glossary
Queue A list of jobs that have been sent to the printer.
R
Record A record is the sum of all fields for one client, person, product, etc. In a Table, one record is one row of the Table. Relational Database The relational database stores information in multiple files. All relational databases are based on the concept of storing information without duplication. In a relational database, it is only necessary to make changes in one place, and then all other areas adjust accordingly. Report A Report is an object that places the data in a presentable format for printing to paper. Restore Button The icon in the upper right corner of a window which reduces a maximized application or document to its original size.
S
Screen Saver A moving picture that appears on the screen when the computer has been out of use for a certain period of time. This prevents burn-in on the computer screen. Scroll Bar A bar that appears on the right or the bottom of a window when there is more information to be viewed. Software A set of instructions, set up as files which tell the computer to perform certain operations. Programs, operating systems and applications are all software. Source Document The document from where linked data originated. Spreadsheet An electronic worksheet that uses formulas to automatically calculate and analyze data. Status Bar A line of information located at the bottom of a window which reveals information about the document, command, or application. Subdirectory A directory which exists under another directory.
TEAMTech Austin
Page 102
Glossary
T
Table The Table is the seed level of all data in the database. All data information is stored in the Table. This is the first type of object created in a new database. Text Box The area in a dialog box where text can be entered or edited. Tile A way to arrange open windows so that they are all visible, and placed side by side. Title Bar The bar located at the top of a window which displays the title of the window or dialog box. Toolbar A horizontal bar located under the menu bar in an application which displays an assortment of icons. Each icon represents a particular function that can be quickly performed in the application. True Type Fonts These are fonts types that will print exactly the way they are shown on the screen, with no alterations, and can be sized to any height.
U
Undo A menu option that allows the user to reverse the most recent function performed.
V
Value the text, date, number, or logical input that completes a condition that a field must meet for searching or filtering.
W
Wallpaper An image displayed behind Program Manager on the desktop.
TEAMTech Austin
Page 103
Glossary
Wildcard Used in filenames to represent a character or group of characters. The question mark (?) is used to represent any single character when it is unknown. The asterisk (*) is used to match a group of characters with others of the same type. For example, *.EXE shows all files with the .EXE extension. Window The area on the screen in which applications, documents, dialog boxes, and groups can be viewed. Windows appear in a rectangular form and all have similar properties. Wizards Help mechanisms that walk the user through creation and modification processes on a step-bystep basis. WYSIWYG An acronym meaning "What You See Is What You Get." This feature in Windows allows the user to see the actual formatting selections on the screen.
Z
Zoom Box Allows the user to edit the contents of a field in a larger window. This makes it easier to read and edit data that surpasses the width of the column.
TEAMTech Austin
Page 104