Creating Queries in Access 2010

  • 6/15/2010

Creating a Crosstab Query

The basic means of storing and presenting data in Access is the table, which is essentially a list of information about a group of “things” (such as customer orders) related to a single primary key value. Another way to present data is in a crosstab query, which relates one value (such as a total or an average) with two other values (such as a customer and a month).

Build a Crosstab Query

  1. Click the Create tab.

  2. Click Query Wizard.

  3. Click Crosstab Query Wizard.

  4. Click OK.

    httpatomoreillycomsourcemspimages613764.jpg
  5. Click the table or query to provide the values for your crosstab query.

  6. Click Next.

    httpatomoreillycomsourcemspimages613766.jpg
  7. Click the field to provide values for the row headings.

  8. Click Add.

  9. Click Next.

    httpatomoreillycomsourcemspimages613768.jpg
  10. Click the field to provide values for the column headings.

  11. Click Next.

    httpatomoreillycomsourcemspimages613770.jpg
  12. Click the field to provide values for the data area (body) of the crosstab query.

  13. Click the summary calculation to be performed on the values in the data area.

  14. Click Next.

    httpatomoreillycomsourcemspimages613772.jpg
  15. Type a name for the query.

  16. Click Finish.

    httpatomoreillycomsourcemspimages613774.jpg