exploring office 2003 - grauer and barber 1 information from the database: reports and queries(wk4)
TRANSCRIPT
![Page 1: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/1.jpg)
Exploring Office 2003 - Grauer and Barber 1
Information From the Database: Reports and
Queries(Wk4)
![Page 2: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/2.jpg)
Exploring Office 2003 - Grauer and Barber 2
Objectives
Describe types of reports
Describe similarities between forms and reports with respect to controls
List sections in a report
Use conditional formatting in a report
Differentiate between a query and a table
![Page 3: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/3.jpg)
Exploring Office 2003 - Grauer and Barber 3
Objectives (continued)
Use design grid to create and modify a select query
Explain multiple criteria rows in a query
Use concatenation to combine fields
Use an immediate If statement
Define an action query
Create a crosstab query
![Page 4: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/4.jpg)
Exploring Office 2003 - Grauer and Barber 4
Case Study: Citizen of the World
The case requires students to create 3 queries:
20 countries with the highest population density in descending order
20 largest countries by area
20 largest countries by population
![Page 5: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/5.jpg)
Exploring Office 2003 - Grauer and Barber 5
Report Types
Columnar (vertical) report Simplest type Lists every field for every record in a
single column (one record per page) Tabular report
Displays selected fields in a row One record per row
![Page 6: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/6.jpg)
Exploring Office 2003 - Grauer and Barber 6
Anatomy of a Report
Report header & footer
Page header & footer
Group header & footer
Detail section
![Page 7: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/7.jpg)
Exploring Office 2003 - Grauer and Barber 7
Report Wizard
Easiest way to create a report Specify the table or query
Select one or more fields
Select layout (columnar/ tabular)
Select a style
Modify the resulting report
![Page 8: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/8.jpg)
Exploring Office 2003 - Grauer and Barber 8
Report Wizard (continued)
Select the Table/Query
Double-click Available Field
Moves to Selected Fields
![Page 9: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/9.jpg)
Exploring Office 2003 - Grauer and Barber 9
Report Wizard (continued)
Select report style
Select page orientation
Select Layout type
![Page 10: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/10.jpg)
Exploring Office 2003 - Grauer and Barber 10
Report Wizard (continued)
Report Header
Page Header
Detail Section
![Page 11: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/11.jpg)
Exploring Office 2003 - Grauer and Barber 11
Report Design View
Bound Controls Data source is a field in the table/query
Unbound Controls Has no data source Used to display titles, labels, lines, rectangles, and graphics
Calculated Controls Data source is an expression (avg, sum)
![Page 12: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/12.jpg)
Exploring Office 2003 - Grauer and Barber 12
Report Design View (continued)
Unbound Control
Unbound Control
Bound Control
Now function
![Page 13: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/13.jpg)
Exploring Office 2003 - Grauer and Barber 13
Hands-on Exercise 1
Title of Exercise: The Report Wizard
Objective: to use the Report Wizard; to modify an existing report by adding, deleting, and/or modifying its controls
Input file: Our Students Output file: Our Students (modified)
![Page 14: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/14.jpg)
Exploring Office 2003 - Grauer and Barber 14
Introduction to Queries
Query provides the resulting records from a question
Design grid: graphical tool used to develop queries
Dynaset: The records that satisfy the query criteria
![Page 15: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/15.jpg)
Exploring Office 2003 - Grauer and Barber 15
Dynaset
Looks and acts like a table
Is a dynamic subset of a table
Allows for entry, updating and deletion of records
Changes update the underlying table
![Page 16: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/16.jpg)
Exploring Office 2003 - Grauer and Barber 16
Select Query Dynaset
The results of a query are displayed as a dynaset
![Page 17: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/17.jpg)
Exploring Office 2003 - Grauer and Barber 17
Creating a Query
Select query Query window views
Datasheet view Design view
![Page 18: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/18.jpg)
Exploring Office 2003 - Grauer and Barber 18
Select Query Design View
Table
Criteria
![Page 19: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/19.jpg)
Exploring Office 2003 - Grauer and Barber 19
Query Selection Criteria
AND condition
OR condition
Relational operators
Between function
NOT function
Wild card
![Page 20: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/20.jpg)
Exploring Office 2003 - Grauer and Barber 20
“And” Query
![Page 21: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/21.jpg)
Exploring Office 2003 - Grauer and Barber 21
Hands-on Exercise 2
Title of Exercise: Creating A Select Query
Objective: to create a select query using Simple Query Wizard; to show how changing values in a dynaset changes values in underlying table; to create a report based on a query Input file: Our Students (from Hands-on Ex. 1) Output file: Our Students (modified)
![Page 22: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/22.jpg)
Exploring Office 2003 - Grauer and Barber 22
Access Functions and Calculated Controls Concatenate
Joins together fields, such as first and last names, into a single field
Name: [LastName]&”,”&[FirstName] Immediate IF (IIF) function
Similar to the IF function in Excel Condition, what happens if true, what happens if
false
![Page 23: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/23.jpg)
Exploring Office 2003 - Grauer and Barber 23
Example of IIF Function
![Page 24: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/24.jpg)
Exploring Office 2003 - Grauer and Barber 24
Grouping Records
Use report anatomy to group records Grouping allows calculations like:
Count function Sum function Min function Max function Avg function
![Page 25: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/25.jpg)
Exploring Office 2003 - Grauer and Barber 25
Hands-on Exercise 3
Title of Exercise: Grouping Records
Objective: to create a query containing a calculated control, then create a report based on that query; use sorting and Grouping to add a group header and footer to a report
Input file: Our Students (from Hands-on Ex. 2) Output file: Our Students (modified)
![Page 26: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/26.jpg)
Exploring Office 2003 - Grauer and Barber 26
Crosstab Queries
Average GPA/Major by Gender
Listing of Majors
![Page 27: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/27.jpg)
Exploring Office 2003 - Grauer and Barber 27
Action Queries
Enables table updates. Four types:
Update: Changes multiple records
Append: Adds records from one table to another
Delete: deletes records that meet a criteria
Make-table: Creates a new table from existing records
![Page 28: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/28.jpg)
Exploring Office 2003 - Grauer and Barber 28
Action Queries
A GPA greater than 3
Changes Financial Aid to Yes
![Page 29: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/29.jpg)
Exploring Office 2003 - Grauer and Barber 29
Hands-on Exercise 4
Title of Exercise: Crosstab and Action Queries
Objective: to use action queries to modify a database; to create a crosstab query to display summarized values from a table
Input file: Our Students (from Hands-on Ex. 3) Output file: Our Students (modified)
![Page 30: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/30.jpg)
Exploring Office 2003 - Grauer and Barber 30
Chapter 3 Summary
Report prints and displays information from a database
Report Wizard easily creates reports
Each report section comprised of controls
Reports: based on table or query
Query displays records that meet a criteria
![Page 31: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/31.jpg)
Exploring Office 2003 - Grauer and Barber 31
Chapter 3 Summary (continued)
Queries display selected records in a dynaset
Grouping records by a field for summaries
Action queries modify records
Crosstab queries display aggregated rather than individual records
![Page 32: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/32.jpg)
Exploring Office 2003 - Grauer and Barber 32
End-of-chapter Exercises
Multiple Choice Practice With Access
Exercise 1 – The Oscars Exercise 2 – The United States Exercise 3 – The Super Bowl Exercise 4 – The Shopping Mall Exercise 5 – Best Realty Exercise 6 – The Fishing Pole Exercise 7 – Salary Increases Exercise 8 – Action Queries
![Page 33: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/33.jpg)
Exploring Office 2003 - Grauer and Barber 33
End-of-chapter Exercises (continued)
Additional Mini Cases Mail Merge
Oh Canada
On Your Own Compacting versus Compressing
![Page 34: Exploring Office 2003 - Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)](https://reader036.vdocuments.net/reader036/viewer/2022062421/56649e035503460f94aee528/html5/thumbnails/34.jpg)
Exploring Office 2003 - Grauer and Barber 34
Questions?