skip to main content



Skip navigation, view page content
Short Courses Schedule | OIT Home Page

Access 2007: Forms, Queries, and Reports


Forms, Queries, and Reports share a similarity in that they all are named and stored in a database file. In this lesson, you will learn what these tools are and how to use them. Before working with these tools, you may want to view information about basic operators and wildcards if you aren't already familiar with these concepts.

To help simplify your database design, you can use a calculated field to take data from a field in your database and perform some manipulation to generate new information. You also can pull data from more than one field and combine the information to create a new field. Note this concept applies to generating data for forms, queries, and reports. For those unfamiliar with creating database expressions, Access provides an Expression Builder that can help you enter a formula in an acceptable format. For example to use Expression Builder with a query, first open the query from within the All Tables navigation column. Right-click the cell where the expression should be inserted (e.g., the Field cell for a calculated field or the Criteria cell for a filter condition).


Forms

Access forms provide a way of collecting data and storing it in your database simultaneously. Using forms to allows you to enter data without having to use Datasheet view with the accompanying scrolling back and forth within rows. Forms can be modified anytime you like. You can even create different forms corresponding to the way data is collected (for example, you might have one for data entry staff or one for managers).

Following are tools you can use to create forms:

  1. Use Autoform if you want to include all fields in a table and don't care about having control over the style applied to the form. There are three types of AutoForms: Simple forms that display one record at a time; Split forms that display all records as a datasheet at the top and the current record at the bottom; and Multiple Items forms that show all records in a columnar datasheet format (works best for table with just a few fields).
  2. Use the Form Wizard if you want to choose specific fields to include from one or more tables and you also want to select the style for your form.
  3. Use Blank Form only if you are an experienced user and want to create a form from scratch.

To create a form using Autoform:

To create a form using the Form Wizard:

To create a blank form from scratch:


Top of page

Queries

Queries provide a more powerful way of pulling information from your database than the simple find, filter, and sorts you have previously seen. Key fields (the primary and foreign key) relate your tables to one another. Queries use these fields to match records in one table to another. Setting up the proper table relationships beforehand helps to simplify the process. When creating a query, you need to know which tables to use; how the tables are related to each other; which fields contain the data you want; and what fields you need in the solution.

As was the case with Forms, there are different methods you can use to create a query:

  1. Use the Simple Query Wizard if you are new to queries. The Wizard walks you through the process of selecting tables and fields and also allows you to add summary calculations (for example, counting records) to your query. In addition to Simple Query, there are three other Query wizards: Crosstab Wizard summarizes multiple rows of data into a speadsheet-type format; Find Duplicates Query Wizard locates duplicate records in your database caused by data entry errors or problems with imported data; and Unmatched Query Wizard finds unrelated records in two tables that share a common field.
  2. Use Query Design if you want to build a query from scratch.

To create a query using the Wizard:

To create a query from scratch:

After you have added fields to the query grid a the bottom of the Query workspace, it's possible to keep a field from being included in the final results by deselecting the checkbox in the Show cell within the field's column.


Top of page

Reports

The Access report tools allow you to create a hard copy of selected data. The difference between simply printing the raw data in a table and creating a report is that Reports give you the ability to fine tune-tune formatting as well as use options for grouping and summarizing data. Like queries, reports are special database objects that you can prepare and keep on hand for future use. Access allows you to produce reports based on queries when you want to include only selected information.

Following are tools you can use to create forms:

  1. Use the Report tool if you want to include all fields from a single table in your report and you don't care about doing any special formatting. This tool does not allow you to do any formatting, so the report you get will look much how the table appears in DataSheet view.
  2. Use the Report Wizard if you prefer to select the fields to include from one or more tables. This tool also gives you the ability to customize the appearance of the report.
  3. Use Blank Report only if you are an experienced user and want to create a report from scratch.

To create a one-table report using the Report tool:

The Report tool gives you some choices for modifying the appearance of your report. When you create the report a contextual tab appears at the top of the Ribbon. It contains two additional tabs, Format and Arrange. Review these tabs to see the available options.

To create a report using the Report Wizard:

To create a blank report from scratch:

Top of page