Finalizing a Database
2
OpenOffice Base
How to manipulate a database to• Create queries
• Generate reports
• Print reports
• Convert reports into Web pages
3
OpenOffice Base (continued)
Database report
• Typically a printed document containing data selected from a database
• Can be formatted in various ways
4
How do I create a query in Design View?
Create a query to:• Search database for records that contain particular
data Query contains criteria that specify what you want to find
• Display some, but not all, of the fields in a table
5
How do I create a query in Design View? (continued)
6
How do I create a query in Design View? (continued)
Click Run Query button to display results in top of query window
Specify query criteria to further refine a search
7
How do I create a query in Design View? (continued)
8
How do I create a report using a Wizard?
Specify fields you want to include• Often include totals and subtotals as well as
detailed information
Report Wizard simplifies the process
9
How do I create a report using a Wizard? (continued)
Report Wizard Steps
Step 1 Add individual fields to the report by clicking appropriate buttons
Step 2 Change field names so they aren’t vague
10
How do I create a report using a Wizard? (continued)
11
How do I create a report using a Wizard? (continued)
Report Wizard Steps
Step 3 Add a grouping level to help arrange data
Step 4 Sort record within a group (Ascending button or Descending button)
12
How do I create a report using a Wizard? (continued)
13
How do I create a report using a Wizard? (continued)
Report Wizard Steps
Step 5 Select option in Layout of data section to use a different report layout, such as Outline layout or Align layout
Step 6 Type a report name to identify it later on
14
How do I create a report using a Wizard? (continued)
15
How do I print a report?
Data in a printed report is a “snapshot” that shows status of the database at a particular point in time
It’s a good idea to add the date or time as a report header to help readers determine if data is current
16
How do I print a report? (continued)
17
How do I save a report as a Web page?
Must be in HTML format to be accessible to Web browsers• Select HTML Document (OpenOffice.org Writer)
(.html) in File type pulldown list
Use a Web browser to preview the report as a Web page to make sure that layout and data appears correctly
18
How do I save a report as a Web page? (continued)
19
Summary
Creating a query in Design View
Creating a report using a Wizard
Printing a report
Saving a report as a Web page