lesson 12 – building advanced reports
DESCRIPTION
Lesson 12 – Building Advanced Reports. Lesson Objectives. Create a report using a wizard. Create a report with a subreport. Add expressions to a report. Add PivotCharts to a report. Work with image controls. Creating a Report Using a Wizard. Exercises Create a Report using a Wizard - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/1.jpg)
© 2008 The McGraw-Hill Companies, Inc. All rights reserved.
ACCESS2007
M I C R O S O F T ®
THE
PROFESSIONAL
APPROACH
S E R I E S
Lesson 12 – Building Advanced Reports
![Page 2: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/2.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
2
Lesson Objectives
• Create a report using a wizard.
• Create a report with a subreport.
• Add expressions to a report.
• Add PivotCharts to a report.
• Work with image controls.
![Page 3: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/3.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
3
Creating a Report Using a Wizard
Exercises
– Create a Report using a Wizard
– Format Controls
– Add Gridlines
– Add Custom Colors
![Page 4: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/4.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
4
Create a Report Using a Wizard
• Quick way to create a report
• Can add special grouping intervals
![Page 5: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/5.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
5
Format Controls
• Make sure all data can be seen
![Page 6: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/6.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
6
Add Gridlines
• Gridlines are available if controls are part of a control layout
![Page 7: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/7.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
7
Add Custom Colors
• Color Builder uses two methods– RGB (Red, Green,
and Blue)– HSL (Hue,
Saturation, and Luminosity)
– Each setting has a range of 0-255
![Page 8: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/8.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
8
Add Custom Colors
• Preview the finished report
![Page 9: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/9.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
9
Creating a Report with a Subreport
Exercises
– Create a Subreport
– Prepare a Main Report
– Add a Subreport
– Modify a Subreport
![Page 10: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/10.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
10
Create a Subreport
• Subreports– Embedded into Main report
– Share a common field and relationship
• Main report – One side of the relationship
• Subreport – Many side of the relationship
![Page 11: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/11.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
11
Prepare a Main Report
• Users should create the main report before trying to add the subreport
![Page 12: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/12.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
12
Add a Subreport Control
• New subreport has an attached label
![Page 13: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/13.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
13
Add a Subreport Control
• For data to change in the subreport when the main report moves from record to record, there must be a common field
![Page 14: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/14.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
14
Modify a Subreport
• Main and subreports should match formatting
![Page 15: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/15.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
15
Adding Expressions to a Report
Exercises
– Create a Concatenated Expression
– Add an UCase Function
– Add an IIF Function
– Add an IsNumeric Function
– Format the Report
![Page 16: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/16.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
16
Create a Concatenated Expression
• Syntax is the set of rules by which the words and symbols in an expression are correctly combined
• To Concatenate is to join text
![Page 17: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/17.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
17
Add an UCase Function
• In the past you could just use the “>” format to show all capitals letters
• In expression use the UCase function
![Page 18: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/18.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
18
Add an IIF Function
• IIF Function– Evaluates an “True/False” expression– If true do one action– If false do another action
![Page 19: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/19.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
19
Add an IsNumeric Function
• IsNumeric function– Returns “True” if data is a number– Returns “False” if data is not a number
![Page 20: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/20.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
20
Format the Report
![Page 21: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/21.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
21
Adding PivotCharts to a Report
Exercises
– Create a PivotChart
– Create a Report using Report Design
– Add PivotCharts to a Report
– Modify Sections
![Page 22: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/22.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
22
Create a PivotChart
• PivotCharts– Can include aggregate
functions – Summarize data– Can be dynamic– Reports don’t have a
PivotChart View– Forms have a
PivotChart View– Subforms can be
added to reports
![Page 23: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/23.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
23
Create a PivotChart
• Modify titles and scales before adding a PivotChart to a report
![Page 24: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/24.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
24
Create a Report Using Report Design
• Main reports don’t need to be elaborate when you plan to add a subform
![Page 25: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/25.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
25
Add PivotChart to a Report
• Subreports need a common field if data in the subreport needs to change when the main report changes records
![Page 26: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/26.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
26
Modify Sections
• Subreport display information differently depending on which section it is located
• Format the Page Number control
![Page 27: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/27.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
27
Working with Image Controls
Exercises
– Add a Watermark
– Add a Logo
– Add an Image Control
![Page 28: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/28.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
28
Add a Watermark
• A Watermark is an image that displays in the background
• It can make it hard to see data
• Used for cover pages
• Use Print Preview to view this feature
![Page 29: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/29.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
29
Add a Logo
• This control defaults to the Report Header
• Image controls have different size modes– Clip mode – Original size– Stretch mode – Fits to frame
• Can distort image
– Zoom mode – Fits to height or width• Don’t distort image
![Page 30: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/30.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
30
Add an Image Control
• Image controls are not bound to the recordset
![Page 31: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/31.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
31
Lesson 12 Summary
• Reports are the database object most often seen by people inside or outside the company.
• Using the Report Wizard is often the easiest way to create a simple report.
• Creating professional-looking reports requires efforts to format all controls and sections properly.
• When controls are part of a control layout, you can add gridlines to separate the controls visually with borderlines.
• Color Builder is an Access tool for selecting colors from a palette or creating custom colors.
• A common method of organizing hierarchical information in a report is to include a subreport.
![Page 32: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/32.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
32
Lesson 12 Summary
• A subreport is a control inserted into a main report.• The main report and subreport should be formatted to
appear as a single unified report.• Expressions allow you to create or use values that are
not included in your data.• The UCase function returns a string that has been
converted to uppercase text.• An IIF function evaluates a “true/false” expression and
then performs one of two actions.• Functions that require numeric values to perform
calculations cannot use text values for input.• Reports that display numeric values should be formatted
to follow standardized accounting standards.
![Page 33: Lesson 12 – Building Advanced Reports](https://reader031.vdocument.in/reader031/viewer/2022012919/56813a23550346895da20034/html5/thumbnails/33.jpg)
THE PROFESSIONAL APPROACH SERIES © 2008 The McGraw-Hill Companies, Inc. All rights reserved.
33
Lesson 12 Summary
• A PivotChart, similar to a PivotTable, summarizes information from selected fields in a data source.
• A PivotChart is added to a report as a subreport control.• The information displayed in a PivotChart depends on
the section in which it is placed.• A watermark is an image control that displays in the
background of a page on a form or report.