ACC: Calculated Fields Must Be Shown to Perform Calculations

Last reviewed: April 2, 1997
Article ID: Q95911
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0, 7.0, 97

SUMMARY

Novice: Requires knowledge of the user interface on single-user computers.

If you have a calculated field named Field1 in a query, and you have another field that is performing a calculation based on Field1, then the Show property of Field1 must be selected in the query grid.

MORE INFORMATION

The following example assumes that you do not have a table in the query that contains a field named Field1.

  1. Create the following query:

          Query: QueryTest
          --------------------------------
          Field: Field1: (1+2)
    
             Show: False
          Field: Field2: (Field1 + 5)
             Show: True
    
    

  2. Run the query. Note that you receive a parameter prompt for Field1. Field1 must be included in the query's recordset in order for the calculation in Field2 to be performed correctly.


Additional query words: queries expression
Keywords : kbusage QryOthr
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Hardware : X86
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.