ACC: "Circular Reference Caused by Alias" Error Message

Last reviewed: May 7, 1997
Article ID: Q97526
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0, 7.0, 97

SYMPTOMS

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

When you try to run a query, the query fails and you receive the following error message:

   Circular reference caused by alias '<field name>' in query
   definition's SELECT list.

CAUSE

The alias, or label, of a calculated field cannot be identical to any of the field names used to calculate the field.

RESOLUTION

Change the name of the alias or label used by the calculated expression or let Microsoft Access automatically assign an alias or label.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb (or NWIND.MDB in versions 1.x and 2.0).

  2. Create a new query based on the Products table as shown below:

          Query: Test Query
          -----------------------------------
          Type: Select Query
    
            Field: UnitPrice: [UnitPrice]/100
            Table: Products
    
          NOTE: In versions 1.x and 2.0, there is a space in Unit Price.
    
    

  3. On the Query menu, click Run. Note that you receive the following error message:

          Circular reference caused by alias 'UnitPrice' in query
          definition's SELECT list.
    

To resolve the error replace the UnitPrice label with Price. For example:

    Field: Price: [UnitPrice]/100

    NOTE: In versions 1.x and 2.0, there is a space in Unit Price.

REFERENCES

For more information about renaming fields in queries, search the Help Index for "Renaming fields," or ask the Microsoft Access 97 Office Assistant.


Keywords : kberrmsg kbusage QryOthr
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : Info_Provided


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: May 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.