Article ID: 109949 - Last Review: January 18, 2007 - Revision: 2.1 How to Group Column Headings in a Crosstab QueryThis article was previously published under Q109949 Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
This article describes how to group values in a crosstab query by using a
fixed number of headings, rather than by having a column for every value.
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
(http://support.microsoft.com/kb/182568/EN-US/
)
ACC97: Microsoft Access 97 Sample Queries Available in Download Center
MORE INFORMATION
The following example demonstrates how to use the Switch() function to
group non-numeric values under four fixed headings. The headings are
A-F, G-O, P-Z, and Other.
REFERENCES
For more information about crosstab queries, search the Help Index for
"crosstab queries," or ask the Microsoft Access 97 Office Assistant.
For more information about the Switch() function, search the Help Index for "Switch Function." APPLIES TO
| Article Translations
|

Back to the top
