How To Set the Cross-Tab Wizard 3 Field Variables RequirementLast reviewed: January 10, 1997Article ID: Q156102 |
The information in this article applies to:
SUMMARYThe Cross-Tab Wizard, which is invoked from the first dialog box of the Query Wizard, is a class provided by Visual FoxPro. It guides you through building a query and displaying the results of that query in spreadsheet format. The class requires that you specify fields from a table as the elements of the resulting spreadsheet. The Cross-Tab Wizard requires field designations for "row," "column," and "data."
MORE INFORMATIONThe requirement for the three field designations comes before the dialog box that permits specifying counts, sums, averages, minimums, or maximums. Before you can select any of these arithmetic functions, you must complete the sources for the "row," "column," and "data" designations. If the result set shows only one or two fields plus the results of an arithmetic function, the three-field designation requirement appears to be an inflexible characteristic of the Cross-Tab Wizard class. Visual FoxPro 5.0 for Windows lets you use one value as both the "data" field and either the "row" or the "column" designations. Completing the construction of the query using the Cross-Tab Wizard, then modifying the resulting query in the Query Designer may satisfy the Wizard while still giving you a useful display in spreadsheet format. The last dialog page of the Cross-Tab Wizard provides this step as one of the final choices. An alternative, which is not supported by Microsoft Technical Support, is to subclass the Cross-Tab Wizard file, Vfpxtab.vcx, so that the derived class provides the necessary three values when only one value and an arithmetic function's result are required for the spreadsheet. The following example describes a way to count the number of orders that exceed a certain value and have been booked at a discount. The desired result is a simple count by discount level:
|
KBCategory: kbtool kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |