Modules >>
Access I >>
Creating a report
Last but not least, you will probably want to create a report of your database. Reports provide a nicely formatted display of data for printing out your records or even viewing them online. If you started a CD collection database, you may need to make a report of your inventory for your insurance company. For student records, you may need to make a report of all your students for the school office files. For your assignment, you will need to create a report for your database.
To create a report,
After previewing your report, close it. You will be able to access it again under
the Report section of the main Access window. If you want to change the design of the
report, you can do so by opening it in "design" view by clicking on the
"design" button after selecting the report name. You may need to modify field
lengths, so that the longer text in data fields is not cut off.
You may also display the report sorted in a different order. For example, the above report
could be sorted by birthday instead of by last name. To do this, open the report in design
view, go to the View menu and select "Sorting and Grouping." You can also
click on its button on the toolbar, which looks like the following:
The Sorting and Grouping window will then appear as follows:
There is a drop-down menu in each cell. Under the "Field/Expression" column, you can choose the field you would like the table sorted by. Under the "Sort Order" column, you can select ascending or descending from the drop-down menu. Once you have set your preferences for sorting, close this window and preview your report again. You will notice the data has been rearranged according to your sort preferences.
When working in the design view, you may find yourself wanting to add a field to the report design that was not initially included (or perhaps you deleted the field and need to replace it).
To add a field not previously included in the report,
Macros and modules will not be covered in this module. To learn more about these two topics, go to the Help menu and search them in the Index.
You have now completed the last lesson of this module. Please return to the main module page to review your assignment requirements by clicking here.
![]()
Copyright © 2001-2002 Valerie Irvine. All rights reserved.
Revised: October 29, 2002.