Article ID: 103189
Article Last Modified on 1/18/2007
APPLIES TO
- Microsoft Access 2.0 Standard Edition
- Microsoft Access 95 Standard Edition
- Microsoft Access 97 Standard Edition
This article was previously published under Q103189
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you set the Output All Fields query property to Yes, you may receive the following error message:
CAUSE
This error message occurs when you are attempting to use aggregate (totals) functions without setting the Output All Fields query property to No.
RESOLUTION
The following procedure shows you how to set this property for your query with aggregate functions:
- Open the query in Design view.
- Make sure that the Properties command on the View menu is checked, so that the property sheet is being displayed. Click anywhere in the Query window outside of the query grid and the field lists. Set the Output All Fields property to No.
MORE INFORMATION
Steps to Reproduce Behavior
- Open the sample database Northwind.mdb (or NWIND.MDB in version 2.0).
- Run the Order Subtotals query, which uses the aggregate function Sum(), to confirm that it works correctly.
- View the Order Subtotals query in Design view.
- Set the Output All Fields property to Yes.
- Run the query. Note that you receive the error in the symptoms section of this article.
REFERENCES
For more information about setting the OutputAllFields property, search for "Setting Query Properties," and then "Set properties for a query, its fields, or its field lists" using the Office Assistant or the Answer Wizard in Microsoft Access on-line help.
For more information about setting the OutputAllFields property, search for "Setting Query Properties" using the Microsoft Access 2.0 Help menu.
Additional query words: can t group on fields selected with *
Keywords: kbprb kbusage KB103189