|
Design of Forms and Reports Fields |
|
|
Common Field Design on Forms and Reports
|
|
Forms provide a friendlier look for data entry to the main user of the database. As such, you will spend a great deal of time designing their look, tuning their functionality, and checking their efficiency. Even when creating a product from the Database Wizard, you will usually realize that various objects are lacking critical fields for the role of the object, or the database itself, as software, needs a few more objects.
As we have learned already, the quickest way to create
forms and reports is by using the Database Wizard. Even if you create your database from scratch, you still can use the
AutoForm or AutoReport to get very easily rendered and readily
available objects. As it happens, the Database Wizard was configured to create only a limited number of objects. If you need additional objects, you can create your own. If you want to control everything or almost everything on the forms and reports, you will have to get into design.
To add fields to a form or a report, you must display the object in Design View. This gives you access to the Controls toolbox, which hosts some of the Windows controls used on forms and reports.
|
Field Insertion on Forms and Reports
|
|
Data on fields of forms and reports fall in three main categories:
- Fields that directly originate from a table or a query.
- Fields created as a combination of existing fields.
- Fields independent of any other fields.
The techniques used to
create these fields are different but a field created using one technique can be changed into another category as necessary.
If you want to use a field that is already part of a table or a query, before, or when, creating the form or report, you must specify the list that holds the fields. There are three main ways you can do this:
- While in the New Form or the New Report dialog boxes, or if you are using the Form Wizard or the Report Wizard, you can select the object (table or query) that holds the list of fields from the combo box:
- If you have already started a form or a report and it is displaying in Design View but you did not yet select the table or report that holds the list of fields, on the Properties window for the form, you can click the arrow of the
Record Source field and select the table or query from the list.
- If you want to use only a selected list of fields from a table or a query, start the form or report in Design View without selecting an object. Then, on the Properties window, click the Record Source field and click its ellipsis button. This will allow you to use the Query Builder to create a query that is a list of the needed field. After creating the query, close it. Its Field List would display only the previously selected fields.
To add a field to a form or a report, you can either click a control from the Toolbox and click the form or report, or drag a field from the Field List to the form or report.
|
|