Chapter 6. creating summary
|
create more fields
In order for a report to display summary figures (such as subtotals, totals, averages, and counts), you create Summary fields. A
Summary field
computes a statistic over all or a subset of records. In a sales report, for example, a Summary field could provide a separate total for each salesperson. (Summary fields perform calculations across a set of records, while Calculation fields perform calculations within a record.) Following are the additional fields you'll need to create for the
CD_Current Value - CD_Amount
Sum (Stocks::Dividend) + Sum (Stocks::Interest) The fields preceded by Stocks:: must be selected from the Stocks table.
When you're finished, click OK to close the Define Database dialog box. |
the Savings ReportThe Savings Report shows the initial and current balance for each savings and money market account, as well as the current total for all such accounts. Using the New Layout/Report wizard, we'll create the report layout below.
Show records from:
Main
Layout
Remove the check mark from Include in layout
Click Next to continue.
Note: Since we are going to calculate a grand total but no subtotals, we don't actually have to select a grouping field. The total will appear, anyway. But doing so will add nice section headers to the report, making it easier to read.
Click Next to continue.
Click the Specify button. In the Specify Fields dialog box, select Sav_Current Balance Summary and click OK. Ensure that End of report is selected from the drop-down list, and click the Add Grand Total button. Click Next to continue.
Header, Top center : Large Custom Text; and enter Savings/Money Market Report in the dialog box that appears. Footer, Bottom left : Current Date Footer, Bottom right : Page Number
Left-align the Sav_Institution field and right-align the others. (Number fields make nice, neat
Select the fill color shown here.
Increase the width of the Sav_Institution field to 2.250" . (You can do this using the Size palette or by dragging one of the field's right handles.) Increase the width of the Sav_Savings Account field to 1.708" . Set the width of the remaining three fields to 1.389" , and then move them as shown below.
Now select each placeholder in the Footer and press an arrow key (
|