Results 1 to 2 of 2
  1. #1
    survivo01 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    71

    Calulating two fields with same name but diffent tables

    I have a query where I am attempting to add two fields with same name but from different queries eg. AM tx querie Sum of Cap + PM tx querie Sum of Cap. In the caluclated fiels I do not know how to differentiate in the fourmula between the two Sum of CAP

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The query is a join of two other queries? Use the subquery names as prefix for the field names.

    [AM tx].[Sum of Cap] + [PM tx].[Sum of Cap]

    If you drag each field individually to columns in the design grid then view in Datasheet, should see the prefixes. Just follow the same structure in the expression.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 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. tables fields
    By funi.t in forum Database Design
    Replies: 4
    Last Post: 01-13-2012, 01:20 AM
  2. Summing Fields between tables
    By marrone12 in forum Queries
    Replies: 9
    Last Post: 09-16-2011, 12:37 PM
  3. Referencing fields from tables
    By Pells in forum Queries
    Replies: 7
    Last Post: 10-27-2010, 03:03 AM
  4. Calulating derived date in table
    By hedleyw in forum Access
    Replies: 2
    Last Post: 04-12-2009, 02:33 AM
  5. Replies: 1
    Last Post: 06-03-2006, 05:02 PM

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