Home

Introduction to Form and Report Design

Forms Fundamentals

Introduction

Besides tables, data is presented in friendlier objects named forms. When it comes to data of a database, there are two broad types of forms: data-unrelated and data-related.

Practical Learning: Introducing Forms

  1. Start Microsoft Access
  2. From the list of files, click Cruise1 (from the previous lesson)

Unrelated Forms

Although most of the forms you will use in a database are meant to display data from a table, you can create an independent form whose functionality and behavior do not depend on the data from a database. To create a blank form, on the Ribbon, click Create and, in the Forms section, click Blank Form:

The Create Form Section of the Ribbon

Practical Learning: Creating a Form

  1. On the Ribbon, click Create
  2. In the Forms section, click Blank Form
  3. To close the form (without saving it), press Ctrl + F4

Automatic Forms

Before creating a form, you must decide where data would come from. If the data of a form will be based on a table, you can specify it. To easily create a form that would display data, in the Navigation Pane, select the table. In the Ribbon, click Create. In the Forms section, click Form.

Practical Learning: Creating a Form Automatically

  1. The Cruise1 database should still be opened.
    In the Navigation Pane, click Rooms to select the table
  2. On the Ribbon, click Create
  3. In the Forms section, click Form

    Automatic Form Creation

The Name of a Form

A form must have a name. You can name it when saving or after creating it. To save and name a form:

If the form was not saved previously, you would be prompted to give it a name. If a form is based on a table, it may be a good idea to give the same name as the table.

Practical Learning: Naming a Form

  1. Right-click the form's tab and click Save
  2. Accept the suggested name of the form as Rooms and click OK
  3. Close the form

The Form Wizard

The Form Wizard provides an easy and fast means of creating a form. To launch the Form Wizard, on the Ribbon, click Create. In the Forms section, click Form Wizard.

Practical Learning: Using the Form Wizard

  1. The Cruise1 database should still be opened.
    On the Ribbon, click Create
  2. In the Forms section of the Ribbon, click Form Wizard Form Wizard
  3. In the first page of the wizard, in the Tables/Queries combo box, select Table: Departments
  4. In the first page of the wizard, double-click the DepartmentCode
  5. Double-click the DepartmentName

    Form Wizard

  6. Click Next
  7. Click Next

    Form Wizard

  8. Accept the suggested name of the form as Departments and click Finish
    An automatic form is created for you
  9. To close the form as a Windows object, click its Close button Close

Introduction to Form Maintenance

Opening a Form in Form View

The Form View is the view used for regular operations on a form. To open a form in Form View:

 

Form Design Fundamentals

The design of a form is done by displaying the object in Design View. To present a form in Design View:

On the other hand, if the form is currently displaying in Design View and you want to switch it to Form View:

Practical Learning: Introducing Form Design

  1. The Cruise1 database should still be opened.
    On the Ribbon, click Create
  2. To create a new form, in the Forms section, click Form Design
  3. To close the form without saving it, click its close button Close

Reports Fundamentals

Introduction

A report is an object made to print the records of a database. Just as mentioned for forms, a report can be made to display the records from a table or a report can be created independently or any table.

An Indepentent Report

A report is independent if it display text and other objects that are not tied to a table. To create such a form, on the Ribbon, click Create. In the Reports section, click Blank Report.

Practical Learning: Creating a Form

  1. On the Ribbon, click Create
  2. In the Reports section, click Blank Report
  3. To close the report without saving it, press Ctrl + F4

Automatic Reports

Microsoft Access provides the means of creating a report with the click of a few buttons. To use this feature, in the Navigation Pane, select the table. In the Ribbon, click Create. In the Reports section, click Report.

Practical Learning: Creating a Form Automatically

  1. The Cruise1 database should still be opened.
    In the Navigation Pane, click Departments to select the table
  2. On the Ribbon, click Create if necessary.
    In the Reports section, click Report

    Automatic Report Creation

Naming a Report

Like every object of a database, a report must have a name. If the report gets its records from a table, it is a good idea for it to hold the same name as the table. To save and name a report:

Give a name to the report and press Enter.

Practical Learning: Naming a Form

  1. Right-click the report's tab and click Save
  2. Accept the suggested name of the report as Departments and click OK
  3. Close the report

The Report Wizard

The Report Wizard can be used to select the fields to display on a report. To start the Report Wizard, on the Ribbon, click Create. In the Reports section, click Report Wizard.

Practical Learning: Using the Form Wizard

  1. The Cruise1 database should still be opened.
    On the Ribbon, click Create if necessary
    In the Reports section of the Ribbon, click Report Wizard Form Wizard
  2. In the first page of the wizard, in the Tables/Queries combo box, select Table: Customers
  3. In the first page of the wizard, click the Select All Fields button Select All

    The Report Wizard

  4. Click Next

    Report Wizard

  5. Accept everything in the second page and click Next

    Report Wizard

  6. In the Layout section, click the Columnar radio button
  7. Click Next

    Report Wizard

  8. Accept the suggested name of the form as Customers and click Finish
  9. To close the report as a Windows object, click its Close button Close

Report Design

A report must be designed in the Design View. To display it in that view:

Practical Learning: Introducing Form Design

  1. The Cruise1 database should still be opened.
    On the Ribbon, right-click the Customers report and click Design View
  2. To close the report, click its Close button Close
  3. If necessary, on the Ribbon, click Create.
    To create a new report, in the Reports section, click Report Design
  4. To close the report without saving it, click its Close button Close

Introduction to the Properties Window

Overview

When designing a form, one of the objects you will regularly use is called the Property Sheet. To get the Property Sheet of the properties associated with a control, while the form is in Design View, right-click the object and click Properties. To display the Property Sheet for the form in Design View:

Any of these actions would display the Property Sheet:

Properties

There are various ways you can close or hide the Property Sheet:

To change the object whose properties you want to access:

Selecting an Item in the Properties Window

The Properties window is made of five property pages or tabs: Format, Data, Event, Other, and All. Each tab is made of two sections devided by a vertical line:

Resizing the Sections of a Tab in the Properties Window

There are values types of properties.

Practical Learning: Accessing the Properties Window

The Name of a Property

The name of a property specifies what it is used for. Each field in the Property Sheet displays its name on the left side:

Names and Values of Properties

The Value of a Property

The value of a property defines the role of that property on the object on which it applies. In the Property Sheet, the value of a property displays on the right side of its name:

Names and Values of Properties

The Types of Properties

Text-Based Properties

Some values of properties can be made of one or more characters or words. Here is an example:

String-Based Property

To specify the value of a text-based property, click either the name or the property field and type it.

Number-Based Properties

A property is numeric if it must hold an integral or decimal value. Here is an example:

Numeric Property: Natural Number

If the value is a natural number, simply type.

A decimal number, also called a floating-point number, can be made of digits or a combination of digits and one period. Here are examples:

Numeric Property: Decimal Numbers

To specify the value, type it, including its decimal separator. If the value is less than 1, such as 0.2167, you can type it like that or only start it with a period followed by the other digits.

Expression-Based Properties

Some properties are made of a combination of specific characters and digits, referred to as a combination.

Boolean Properties

A property is referred to as Boolean if it can have only either a Yes or a No value, an On or an Off value, a 0 or no 0 value. Here are examples:

Boolean Property

To change the value of a Boolean property:

Enumerated Properties

Some properties provide a list of options as the possible values of the property. To change the value of an enumerated property:

Enumerated Property

Action-Based Properties

Some properties need a value that may be gotten from an external object or another application. In the Property Sheet, such properties show an ellipsis button:

Action-Based Property

When you click the ellipsis button Browse, a dialog box or a window may come up.

Practical Learning: Ending the Lessons

  1. Close Microsoft Access
  2. When asked whether you want to save, click No

Previous Copyright © 2002-2021, FunctionX Next