Results 1 to 3 of 3
  1. #1
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013

    Can you have a calculated field reference another calculated field in the same query?

    I have the following calculated field in my query design grid:

    ProjectCheck: [STProjTask]<>[CorrectProjTask]

    STProjTask and CorrectProjTask are also calculated fields, therefore ProjectCheck is a calculated field that references two calculated fields. All of these calculated fields are defined in this one query.

    When I return to Datasheet View, I am prompted for a parameter query on STProjTask. It's as if Access doesn't recognize STProjTask. STProjTask is spelled the same when I defined it as a calculated field and when I reference it. So I don't know why I'm being prompted for a parameter input.

    I am thinking that Access may not allow calculated fields to reference other calculated fields?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    8300' in the Colorado Rocky Mountains
    I don't think it does. Try replacing the Calculated Field names with the actual calculations and see what happens.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    The Great Land
    Depends on the calcs. A simple expression referencing two simple calculated fields in same query SELECT clause works for me. However, can't reference calculated field in WHERE clause - the calc must be repeated there.

    Post your query or even provide db for analysis.
    How to attach file: To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 08-25-2014, 01:23 PM
  2. Calculated Field in Query
    By roarcrm in forum Queries
    Replies: 1
    Last Post: 06-06-2014, 09:24 AM
  3. Replies: 4
    Last Post: 03-20-2014, 03:52 PM
  4. Replies: 3
    Last Post: 02-13-2013, 10:15 AM
  5. How do I reference a Calculated Field?
    By Zerdan in forum Forms
    Replies: 7
    Last Post: 05-31-2011, 01:38 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Other Forums: Microsoft Office Forums