ACC: Creating a Crosstab Query with Multiple Value Fields (109939)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q109939 Novice: Requires knowledge of the user interface on single-user computers.
SUMMARY
In a Microsoft Access crosstab query, you can specify only one field
or calculation as the value. Often, you may want to show more than
one value in the query.
For example, the following example shows two columns of information per
company, a count of the number of orders, and the order totals for each
year:
Company Name 1989 Orders 1989 Total 1990 Orders 1990 Total
--------------------------------------------------------------
ABC Company 12 $855.00 15 $1010.25
XYZ Company 1017 $22045.57 1050 $25345.29
This type of query is sometimes called a Multiple Value Field query.
NOTE: A demonstration of the technique used in this article can be seen
in the sample file, Qrysmp97.exe. For information about how to obtain
this sample file, please see the following article in the Microsoft
Knowledge Base:
182568 ACC97: Microsoft Access 97 Sample Queries Available in Download Center
REFERENCES
For more information about crosstab queries, search for "crosstab queries,
creating," and then "Create a crosstab query without using a wizard," using
the Microsoft Access 97 Help Index.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbinfo KB109939 |
---|
|