1. Download the START and SOLUTION databases
ReportPolish_START_SOLUTION.zip
2. Change equations for sum descriptions in each of the group footer sections to cut extra words.
Month format code is mmm-yy
Year format code is yyyy
3. Set Width of product category footer descriptive equation to 2.8 inches and Left to 0.2 inches.
4. Delete extra labels with the caption = sum
5. Set width of other group footer descriptive equations to 3 inches.
6. Set Top of sum amount controls to 0 in the group footer sections.
7. Bold header and footer group section controls.
8. Tighten spacing to reduce pages.
9. Set group sections to 'keep header and first record together on one page'.
10. Set Back Color and Alternate Back Color for each section:
- Product Category = aqua
- Day = orange
- Month = blue
- Year = green
11. Set group header and footer controls to Back Style = Transparent.
12. Save, Close, and Rename the report.
13. Modify the menu form to add a command button with a Click [Event Procedure] to open the report in print preview.
Remember to Debug, Compile, and then Save
14. Write VBA code to construct criteria that the user may have picked and ignore criteria that is not specified.
15. Modify the OpenReport code to call the criteria function for the WhereCondition argument.
Remember to Debug, Compile, and then Save
16. Now for the fun part ... open your new report for any date, or date range, or no criteria!