Results 1 to 3 of 3
  1. #1
    slpgqn is offline Novice
    Windows 8 Access 2007
    Join Date
    Jul 2015
    Posts
    1

    Combine fields in different tables and amount is duplicated/stacked

    Hi



    Need help. I have a few input tables and I am trying to combine the fields from 2 tables into one query. How do I go about doing it without having the project amount (highlighted in red) being duplicated?

    TIA
    Table 1 Table 2 Query
    Project Project Amount Project Budget Budget Amount Project Project Amount Budget Budget Amount
    1 1000 1 1A 100 1 1000 1A 100
    2 2000 1 1B 100 1 1000 1B 100
    3 1500 1 1C 100 1 1000 1C 100
    4 2000 1 1D 100 1 1000 1D 100
    5 1200 2 2A 500 2 2000 2A 500
    2 2B 500 2 2000 2B 500
    3 3A 300 3 1500 3A 300
    3 3B 300 3 1500 3B 300
    4 4A 250 4 2000 4A 250
    4 4B 250 4 2000 4B 250
    5 5A 150 5 1200 5A 150
    5 5B 150 5 1200 5B 150

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    It WILL duplicate. It's how the queries work due to your data.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Perhaps you should do an aggregate query of Table2 to summarize data by project then join that query to Table1.

    Otherwise, build a report and use its properties to prevent repetition of the ProjectAmount value. Options:

    1. set textbox HideDuplicates property to Yes

    2. set a group on the Project identifier and put the ProjectAmount field in the group header.

    3. report/subreport arrangement
    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. Replies: 2
    Last Post: 04-22-2015, 12:28 PM
  2. Replies: 7
    Last Post: 06-19-2014, 12:00 PM
  3. Combine duplicated data in a report
    By padfoot in forum Reports
    Replies: 3
    Last Post: 03-24-2012, 08:41 AM
  4. Replies: 4
    Last Post: 10-28-2011, 12:49 PM
  5. Combine two unrelated tables with the same fields
    By lghovden06 in forum Queries
    Replies: 4
    Last Post: 07-27-2010, 03:36 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