Microsoft Access 2007 Module 2

Similar documents
Microsoft Access 2007 Module 1

Getting started with Ms Access Getting Started. Primary Key Composite Key Foreign Key

Introduction to Microsoft Access 2016

Database Tables Lookup Wizard Relationships Forms Subforms Queries Reports

Microsoft Access 2010

Working with Data in Microsoft Excel 2010

Chapter 4. Microsoft Excel

Objective 1: Familiarize yourself with basic database terms and definitions. Objective 2: Familiarize yourself with the Access environment.

When you pass Exam : Access 2010, you complete the requirements for the Microsoft Office Specialist (MOS) - Access 2010 certification.

THE EXCEL ENVIRONMENT... 1 EDITING...

Complete Quick Reference Summary

Microsoft Access 2010

Level 6 Relational Database Unit 3 Relational Database Development Environment National Council for Vocational Awards C30147 RELATIONAL DATABASE

Links to Activities ACTIVITY 4.1. Links to Activities Links to Activities

SOFTWARE SKILLS BUILDERS

Microsoft Access 2013

Microsoft Access 2013

Links to Activities ACTIVITY 3.1. Links to Activities ACTIVITY 3.

SEE GRADING CRITERIA AT THE BOTTOM. Database Tables Lookup Wizard Relationships Forms Queries Reports

PowerSchool Handbook Federal Survey Card Report

Integrating Word with Excel

Microsoft Access 2013

Computer Skills MS Access Work Sheet # 1

PowerSchool Handbook Federal Survey Form Report

MODULE 5 DATABASES. Content

Data Should Not be a Four Letter Word Microsoft Excel QUICK TOUR

TECHNOLOGY COMPETENCY ASSESSMENT MODULE Microsoft Access

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Excel Tables & PivotTables

PowerPoint Presentation to Accompany GO! All In One. Chapter 13

GO! with Microsoft Access 2016 Comprehensive

Microsoft Access II 1.) Opening a Saved Database Music Click the Options Enable this Content Click OK. *

Using Microsoft Access

Microsoft Excel Chapter 2. Formulas, Functions, and Formatting

K Hinds Page 1. Information Communication Technology Microsoft Access

Microsoft Access 5: Reports & Other Useful Functions

INTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4

MS Access Let s begin by looking at the toolbar and menu of Access.

Access - Introduction to Queries

MIS Cases: Decision Making With Application Software, Second Edition. Database Glossary

Introduction to Microsoft Excel 2010

Let s create another simple report from one of our queries available: Author Age query.

Rev. B 12/16/2015 Downers Grove Public Library Page 1 of 40

Advanced Excel. Click Computer if required, then click Browse.

Intellicus Enterprise Reporting and BI Platform

Creating Reports in Access 2007 Table of Contents GUIDE TO DESIGNING REPORTS... 3 DECIDE HOW TO LAY OUT YOUR REPORT... 3 MAKE A SKETCH OF YOUR

Access 2003 Introduction to Report Design

Microsoft Access 2010

Excel 2013 Next Steps

Introduction to Microsoft Excel 2010

Name: Class: Date: Access Module 2

Unit 11.Introduction to Form and Report

Excel 2013 Workshop. Prepared by

How to Create Custom Name Badge Inserts with a Mail Merge in Microsoft Word 2007

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Open. Select the database and click. Print. Set printing options using the dropdown menus, then click the

Microsoft Excel 2010 Tutorial

Excel Select a template category in the Office.com Templates section. 5. Click the Download button.

Rev. C 11/09/2010 Downers Grove Public Library Page 1 of 41

Using Microsoft Access

Microsoft Office 2016 Mail Merge

Excel Level 1

Microsoft Office 2010: Introductory Q&As Access Chapter 2

Open Excel by following the directions listed below: Click on Start, select Programs, and the click on Microsoft Excel.

Excel Module 7: Managing Data Using Tables

Microsoft Office Illustrated Introductory, Building and Using Queries

ADD AND NAME WORKSHEETS

Microsoft Office Specialist Access 2016

Spreadsheet definition: Starting a New Excel Worksheet: Navigating Through an Excel Worksheet


Database Design Practice Test JPSFBLA

Table of Contents COURSE OVERVIEW... 5

Microsoft Excel Important Notice

Microsoft Access XP Edition for ECDL Syllabus 4.5 (UK only)

Introducing Gupta Report Builder

Access Review. 4. Save the table by clicking the Save icon in the Quick Access Toolbar or by pulling

SUM, AVERAGE, MEDIAN, MIN,

Introduction to MS Excel Management Information Systems

Table of Contents. 1. Creating a Microsoft Excel Workbook...1 EVALUATION COPY

Office of Instructional Technology

Microsoft Access XP (2002) Reports

GO! with Microsoft Access 2016 Comprehensive

Introductory Excel Walpole Public Schools. Professional Development Day March 6, 2012

Candy is Dandy Project (Project #12)

For Microsoft Office XP or Student Workbook. TECHNOeBooks Project-based Computer Curriculum ebooks.

MICROSOFT WORD. MS. Office includes the following application:

Access Groups. Collect and Store. Text Currency Date/Time. Tables Fields Data Type. You Your Friend Your Parent. Unique information

Basic Microsoft Excel 2011

Introduction to Microsoft Excel

FOCUS ON: DATABASE MANAGEMENT

Creating a Spreadsheet by Using Excel

User Guide. Web Intelligence Rich Client. Business Objects 4.1

Access Groups. Collect and Store. Text Currency Date/Time. Tables Fields Data Type. You Your Friend Your Parent. Unique information

Shelly Cashman Series Microsoft Office 365 and Access 2016 Introductory 1st Edition Pratt TEST BANK

DESIGNING, BUILDING, AND USING DATABASES (BEGINNING MICROSOFT ACCESS, X405.4)

TABLE OF CONTENTS. i Excel 2016 Basic

course notes quick reference guide

Basics of Spreadsheet

Microsoft Access 2003 Edition for ECDL Syllabus 4.5 (UK only)

IGSS 13 Configuration Workshop - Exercises

Transcription:

Microsoft Access 007 Module http://pds.hccfl.edu/pds

Microsoft Access 007: Module August 007 007 Hillsborough Community College - Professional Development and Web Services

Hillsborough Community College - Professional Development and Web Services The material contained in this training material is copyrighted 007 Hillsborough Community College Department of Professional Development and Web Services and may not be reproduced without express, written permission. Other trademarks, trade names, logos, designs, brand names, and product services mentioned in this publication may be trademarks or registered trademarks of third parties.

Microsoft Access 007 - Module II Table of Contents Objectives...................................... 1 Import a Table from Excel........................... Export an Access Table to Excel....................... 5 Create a Query.................................. 6 Query Sort...................................... 8 Show...................................... 9 Text Data Criteria............................ 10 Wildcards.................................. 11 Field Not in Result............................ 1 Number................................... 1 Comparison................................ 14 Comparison And............................. 15 Comparison Or.............................. 16 Aggregate Functions.............................. 17 Count.................................... 18 Avg (Average).............................. 0 Parameters and the Between Operator................. 1 Report Wizard.................................. Modify a Report................................. 5 Insert Images into a Form or Report.................. 6 Resize Images in a Form or Report.................... 7 i

Microsoft Access 007 - Module II Objectives At the end of this training session you will be able to: 1. Import a table from Excel;. Export an Access table to Excel;. Create a query; 4. Sort fields in a query; 5. Show fields in a query; 6. Run a query using wildcards; 7. Run a query for fields not in result; 8. Run a query for a number value; 9. Run a query using the comparison criteria And ; 10. Run a query using the comparison criteria Or ; 11. Understand the purpose of Aggregate Functions; 1. Create and run a query using count; 1. Create and run a query using average; 14. Create and run a query using the parameter between; 15. Insert and resize a graphic/image; 16. Create and Modify a Report.

Hillsborough Community College - Professional Development and Web Services

Microsoft Access 007 - Module II Import a Table From Excel Access and Excel work well together. It is quite simple to import data from an already existing Excel spreadsheet. In this example, we are using the files located on your computer s desktop, in the PDWS folder. 1 1. Open this module s Access 007 file. e.g. Desktop > PDWS folder >Access > Access II > Access007_M.accdb Under the External Data tab>import group, click on Excel.. After the Get External Data dialog box appears, click on Import the source data into a new table in the current database. Other options are to append the new records to a table or link the Excel spreadsheet to the Access database. If you choose to append the records to a table, make sure the fields and data types match with the existing data.. Click on the Browse button and select the file to import. e.g. Desktop > PDWS folder >Access > Access II > Employee_Add.xlsx 4. Click OK. 5. Select which worksheet or range to import by clicking on the Show Worksheets or Show Named Ranges radio button. e.g. Show Worksheets 6. Select the sheet or sheet range to import and click on Next. e.g. Sheet1 7. Add a check mark by clicking on the First Row Contains Column Headings and click on Next. Adding this check mark specifies that the first row contains a column heading. 5 6 7

Hillsborough Community College - Professional Development and Web Services 8. You can specify information about the spreadsheet fields on this screen, such as data type. You can even specify if you do not want to import a certain field. These specifications are set in the Field Options area. In this example, we are going to import all fields. 9. Click Next. 10. Choose the appropriate primary key setting and click on Next. In this example the ID is the primary key; however, Access can choose a primary key. Also you can choose a primary key or choose not to have any primary key. Select Choose my own primary key and ID from the drop-down list. 11. Type a name for the table and click on Finish. e.g. tblemployeeaddresses 1. If you will be importing a file repeatedly, Access gives you an option to save the import steps. For this example, do not check to Save import steps and click on the Close button. 1. tblemployeeaddresses now appears in the left pane, under Tables. 8 10 9 1 11 1 4

Microsoft Access 007 - Module II Export an Access Table to Excel Any database table can be exported, in a variety of formats. In this example, we are going to export to Excel. 1. In the Navigation Pane, select the object to export, 1 e.g. tblempinfo. In the External Data tab>export group, select Excel.. Click the Browse button to select a destination for the exported file. 4. Select an appropriate file format. If you need to share this file with people that do not have Excel 007, choose Microsoft Excel 97-00. If that is not a concern, select Excel Workbook. 5. Specify the appropriate export options. Add a checkmark to Export data with formatting and layout. You can also select the option Open the destination file after the export operation is complete, if you would like to preview the exported file. 6. Click on OK. 5 4 6 7 7. If you elected to Open the destination file after the export operation is complete, Excel will open with the new exported file displayed. 8. Save the export steps, if this is a regularly occurring export and click Close. 8 5

Hillsborough Community College - Professional Development and Web Services Create a Query A query allows for table inquiries. A query can change, delete, add, and arrange data in tables. Queries also aid gathering information for forms and reports. With a query you can ask questions and set parameters. 1. Select the Create tab.. In the Other group, select Query Wizard.. Select Simple Query Wizard and click OK. 4. Under Tables/Queries, click on the down arrow and select the tables and/or queries to create and run a new query. e.g. tblempinfo. 1 5. In the Available Fields list, select the table's field(s) to add to the query. In this example, all the fields are used; therefore, click on the double-headed arrow icon to move all the items (fields) to the Selected Fields list. 6. Click Next. 4 5 6 6

Microsoft Access 007 - Module II 7. Select a Detail or Summary. e.g. Detail 8. Click on Next. 9. Type a title for the query, such as qryemployeecomp. 10. Click on either the Open the query to view information radio button or the Modify the query design radio button. e.g. Modify the query design 11. Click Finish. 1. The qryemployeecomp query is now displayed in Design View. 7 9 8 10 11 1 7

Hillsborough Community College - Professional Development and Web Services Query in Design View: Sort Sorting information can be a valuable tool when dealing with large amounts of information or when simply organizing information (fields). More than one field can be sorted; however, the field farthest to the left is given priority when sorting. Fields can be sorted by: Ascending Descending Not Sorted In this example, the LastName field is sorted in ascending order. 1. While in Design View, click in the blank box next to Sort, under Lastname; a down arrow appears.. Select the sort option. e.g. Ascending. In the Query Tools/Design tab>results group, click the Run button to activate the query and see your results. 4. Go back to Design View to edit your query. 1 4 8

Microsoft Access 007 - Module II Query in Design View: Show The Show option displays or hides fields in a query or form. In this example, some fields will be hidden. 1. While in Design View, uncheck the show box for Exempt, Zip Code and Street. To show fields in a query s results, add a check to each field name s Show checkbox. To hide fields in a query s results, remove the check in the field name s Show checkbox. 1. Click the Run button to see your query results. Notice that the Exempt, Zip Code and Street fields are not being shown.. Select Design View to make more adjustments to the query design. 9

Hillsborough Community College - Professional Development and Web Services Query: Text Data Criteria Text Data is data in fields that are in text format. Such examples include but are not limited to names, addresses, employee number, location, etc. In this example, employees that are exempt are queried. 1. In the Criteria section under Exempt, type the text data criteria. e.g. Yes. Check the Show box for Exempt, to show this field in the results.. In the Query Tools/Design tab>results group, click the Run button. 4. The results of the query now display all employees that are Exempt. 1 4 Activity Run a query looking for employees who live in Temple Terrace. How many HCC employees live in Temple Terrace? 10

Microsoft Access 007 - Module II Query Criteria: Wildcards In this example, the last name of an employee with the letter M is queried. 1. Go back to Design View. In the Criteria section under LastName, type the text data criteria. e.g. M*. Click on the Run button.. The results of a query now display all employees with a last name that begins with the letter M. Wildcards are useful in Access to serve as a character or blending of characters. There are two types of wildcards in Access * (asterisk)? (question mark) 1 The * wildcard symbolizes any compilation of characters. Therefore, mi* stands for the letters mi, followed by any letter combination. The? wildcard symbolizes any defined letter. As a result, B?rt operates as the letter, B, followed by any single letter, r, and t. Appropriately, B?rt can mean Bert or Burt. Activity Run a query looking for employees working at a campus with the letter D. How many employees work at a campus with the letter D? How would you run a query for employees working at District? How many employees work at District? 11

Hillsborough Community College - Professional Development and Web Services Query Criteria: Field Not in Result Field Not in Result is a query where criteria for a specific field do not need to appear in the outcome of the final query. In this example, the last name, first name, and middle initial are necessary. However, the campus does not need to appear. Therefore, a query with only the names of the employees working at the Brandon campus is required. 1. In Design View, uncheck the items to be hidden. e.g. Campus. Type criterion in the Criteria section, under Campus. e.g. BR. Click on the Run button. 4. The results of the query now display all employees at the Brandon campus. 4 1 1

Microsoft Access 007 - Module II Query Criteria: Number Using a number in a criteria is useful when information from a data field that consists of numbers is required. A dollar sign or decimal point is not required in the criterion. In this example, the names, campuses, and the salary of employees earning $9,800.00 are needed. 1. In Design View, type criterion in the Criteria section. For example, under Salary, type 9800. Do not type in the dollar sign or the decimal point. Uncheck unnecessary fields, such as Street, City, State, ZipCode and Exempt.. Click on the Run button.. The results of the query now display all employees whose salary is $9,800.00. 1 Activity Run a query looking for employees earning $60,000. How many employees are earning $60,000? 1

Hillsborough Community College - Professional Development and Web Services Query Criteria: Comparison Using a number in a criteria is useful when information from a data field that consists of numbers is required. A dollar sign or decimal point is not required in the criterion. In this example, the names, campuses, and the salary of employees earning more than $0,000.00 is needed. 1. In Design View, type criterion in the Criteria section. e.g. Under Salary, type >0000. Do not type in the dollar sign or the decimal point.. Click on the Run button.. The results of the query now display all employees earning more than $0,000. 1 Activity Run a query looking for employees earning less than $0000. How many employees are earning less than $0,000? 14

Microsoft Access 007 - Module II Query Criteria: Comparison AND Using the AND criteria is appropriate when information is needed from multiple fields. AND conditions must appear on the same criteria line, for example, the names of employees earning more than $0,000.00 at the Dale Mabry campus. 1. In Design View, type criterion in the Criteria section. e.g. Under Salary, type >0000. Do not type in the dollar sign or the decimal point.. Type the AND criterion. e.g. Under Campus, type DM.. Click on the Run button. 4. The results of the query now display all employees earning more than $0,000 at the Dale Mabry campus. 1 Since the two conditions are on the same line, each one must be true. 4 Activity Run a query looking for employees working at the Ybor campus and who are exempt. How many employees are working at the Ybor campus and are exempt? 15

Hillsborough Community College - Professional Development and Web Services Query Criteria: Comparison OR Using the OR criteria is applicable when information is needed from multiple fields. 1 OR conditions must appear on the separate lines. 4 In this example, the names of employees earning less than $0,000.00 or with the last name beginning with the letter M are required. 1. Type criterion in the Criteria section. Under Salary, type <0000. Do not type in the dollar sign or the decimal point.. Type the OR criterion. Under Last Name, type M* on a separate line.. Click on the Run button. 4. The results of the query now display all employees earning less than $0,000 or employees with a last name beginning with the letter M. Since the two conditions are on separate lines, at least one condition must be true. Activity Run a query looking for employees working at the Ybor (YB) campus or the Plant City (PC) campus. 16

Microsoft Access 007 - Module II Aggregate Functions Aggregate functions within Access allows the user to carry out simple mathematical operations within a query. Aggregate functions (operations) include sum, average, minimum, maximum, count, standard deviation and variance. These functions can be accessed by selecting the Totals button on the query design toolbar or typing the aggregate function in the Total row of the Design grid. Aggregate Function Sum Description Determines the sum of field values. Supports the following data types: AutoNumber, Currency, Date/ Time and Number. Avg Min Max Count StDev Var Calculates the average of field values. Supports the following data types: AutoNumber, Currency, Date/ Time and Number. Determines the lowest field value. Supports the following data types: AutoNumber, Currency, Date/ Time, Number and Text. Determines the highest field value. Supports the following data types: AutoNumber, Currency, Date/ Time and Number. Determines the number of records in a field. Supports the following data types: AutoNumber, Currency, Date/Time, Memo, Number, OLE Object, Text and Yes/No. Calculates the standard deviation of a field value. Supports the following data types: Currency or Number. Calculates the statistical variances of a field. Supports the following data type: Currency. 17

Hillsborough Community College - Professional Development and Web Services 1 Query: Using the Aggregate Function Count Using the aggregate function Count is useful when a simple count or tally of information is required. 1. In the Create tab>other group, select Query Design.. Select the tables and/or queries to show and click Add. e.g. tblempinfo. Click Close. 4. Double click on a field name from the table or query twice to appear in the query design grid. e.g. Campus. 4 18

Microsoft Access 007 - Module II 5. In the Query Tools/Design tab>show/hide group, click on the Totals button. 6. The Total row now appears in the design grid between Table and Sort. 7. Select the aggregate function on the second Campus field e.g. Count. 5 8. Click on the Run button. 9. Result of query using the aggregate function Count. 10. Save the query as qrycntcampus. 6 7 8 Activity Create a query for gender using the aggregate function Count. Save the query as qrycntgender How many are males? How many are females? How could using the aggregate function Count be useful to you? 9 19

Hillsborough Community College - Professional Development and Web Services Query: Using the Aggregate Function Avg Using the aggregate function Avg (average) is useful when an average of information is required. In this example, we are determining the average salary by campus. 1. Under the Create tab>other group, select Query Design.. Select the tables and/or queries to show and click Add. e.g. tblempinfo. Click Close. 4. Double click on the field names from the table to appear in the Field design grid. e.g. Campus and Salary. 5. Click on the Totals button. The Total row now appears in the design grid between Table and Sort. 6. Select the aggregate function on the second field and click on the Run e.g. Avg. button. 7. Result of query using the aggregate function Average. 8. Save the query as qryavgsalarycampus. 4 5 6 Activity Create a query for the average salary by city using the aggregate function Avg. Save the query as qryavgsalarycity. 7 Which city has the highest average salary? How could using the aggregate function Avg be useful to you? 0

Microsoft Access 007 - Module II Query: Using Parameters and the Between Operator Creating a parameter query allows you to search for information in fields. However, for the parameters to function, you will have to enter the criteria when prompted by the parameter dialog box. 1 In this example, we are determining the names of the people whose start date is between 1/01/1980 and 1/1/1999. 1. Under the Create tab>other group, select Query Design.. Select the tables and/or queries to show and click Add. e.g. tblempinfo. Click Close. 4. Double click on the field names from the table to appear in the Field design grid. e.g. FirstName, LastName, and StartDate. 5. Under StartDate Criteria type the following: Between [Beginning Start Date] And [Ending Start Date]. 4 5 1

Hillsborough Community College - Professional Development and Web Services 6. Click on the Run button and enter the following parameters Beginning Start Date: 1/01/1980 and Ending Start Date: 1/1/1999. 7. Result of query using the parameter Between. 8. Save the query as qrybtwnstartdate. 6 7 8 Activity Create a query using parameters. The query will show the names of people, salary and campus. Save the query as qrybtwsalarycampus. Show how many people make between $0,000 and $40,000 and at which campus he/she works. What are the results for each campus?

Microsoft Access 007 - Module II Create a Report: Report Wizard Report Wizard is easy to use and allows for the design, development, printing, and print preview of information such as labels, lists, form letters, invoices, summaries, display charts, etc. The user can personalize reports by adding a logo or picture, organizing headers, footers and sorting columns. 1 In this example, the names of employees earning more than $0,000.00 or with the last name beginning with the letter M are required. Adjust the qryemployeecomp query, if necessary. 1. In the All Access Objects pane, select the object that you would like to use for creating the report. For example, select qryemployeecomp.. Under the Create tab>reports group, select Report Wizard.. Make sure the correct table or query is selected. Add Available Fields to Selected Fields and click on Next. In this example, qryemployeecomp should be selected and add all available fields. 4. Add any grouping levels; however, in this example do not add any. Therefore, click on Next. 4

Hillsborough Community College - Professional Development and Web Services 5. Sort records, up to four fields in ascending or descending order, and click on Next. In this example, the fields LastName and FirstName, are sorted in ascending order. 6. Choose a report layout and orientation and click on Next. e.g. Tabular layout and Landscape orientation 7. Choose a report style and click on Next. e.g. Access 007 8. Type in a report title, preview the report, or modify the report s design and click on Finish. e.g. rptemployeeinfo 9. The Employee Information report now appears. 5 6 9 7 8 4

Microsoft Access 007 - Module II Modify a Report Design View and Layout View allow for the modification and customizing of reports by adding a logo or picture, organizing headers, footers, and sorting columns. In this example, the Employee Information report is modified. 1 1. In the Home tab>views group, select View > Design View to change to Design View.. The report now appears in Design View.. To change the font, highlight the text box, then make your font selection. For example, click on the Last Name label text box and choose a larger font size. Also change the alignment to Center. 4. Select Report View see the changes. 5. Report changes are viewable. 4 To move report objects around, click on an object and drag it to the new location, while you are in Design View or Layout View. You can also resize and delete columns. 5 Activity Modify rptemployeeinfo by changing the font, size and color. Change the report header title to HCC Employee Information. Delete unnecessary columns to save space. 5

Hillsborough Community College - Professional Development and Web Services Insert a Graphic/Image Personalize forms and reports by adding a company logo or another graphic. To insert a graphic into a form or report, you can be in Design View or Layout View. In this example, we ll use Design View. 1 1. In the Report Design Tools/Design tab>control group, click Image.. Take the image pointer and click and hold, then draw a rectangle to the approximate size of the graphic in the location where the image will appear. Release mouse button after the Image box is drawn. In this example, the HCC logo is added to the report header.. After the Insert Picture dialog box appears, locate the file and click on OK. e.g. Desktop > PDWS Folder > Access II> HCCLogo. 4. Resize graphic with sizing handles. 4 6

Microsoft Access 007 - Module II Resize Image/Graphic Sometimes after an image is placed on a form or report, it does not fit properly in its box. Below are the steps to resize an image without resizing the box entirely. 1 1. Select the image.. Right click on the mouse and click on Properties.. Click on the Format tab. 4. Point to and click on Size Mode down arrow and choose Stretch. 5. The image now fits in the box. 4 Activity Insert an image into your report and resize the image using the Resize Image/Graphic steps. 5 7

Hillsborough Community College - Professional Development and Web Services 8