Home > Articles

  • Print
  • + Share This
This chapter is from the book

Begin the Report by Creating a Query

Usually you'll want to create a report from a query that pulls together data from two or more tables as your record source. You'll create a query that combines key fields from tblCountries, such as area and population, with fields from the other tables that will display the government type and historical legacy.

  1. If your Relationships window is still open, close it.
  2. In the Database window, click Queries. Double-click Create Query in Design View.
  3. In the Show Table dialog box, add tblGovernment, tblCountries, and tblHistory (in that order) to the query. Close the Show Table dialog box.
  4. If necessary, maximize the design window. From the Countries field list, double-click the Country, Area, and Population fields to add them to the grid.
  5. From the Government field list, add GovtType to the grid. From the History list, add HistRule (see Figure 10.3).
    10fig03.gif

    Figure 10.3 The query in Design view.

  6. Click the View button at the far left of the toolbar to switch to Print Preview view and view your records.
  7. Choose File, Save and save the query as qryAdministration.
  8. Close the query.
  • + Share This
  • 🔖 Save To Your Account