Results 1 to 2 of 2
  1. #1
    javeko is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    1

    Post Sum of double values with unique ID

    Hi,

    I have an file with 500.000 + lines.
    Each line has an ID with an amount.
    For example:
    ID Amount
    1 2
    Often the ID appears with a different amount.

    I want to have a cleaned up acces file where each ID only appears once but where the amounts are add up.

    For example:



    ID Amount
    1 2
    1 4

    Should be in the new file

    ID Amount
    1 6

    Could someone help me to solve this problem?

    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    This is accomplished with an aggregate (GROUP BY) Totals query. Actually a basic query that can be built with the query builder. Access Help has guidelines on using the query builder.

    Or build a report using Grouping and Sorting features with aggregate calcs in group footer. Again, fairly basic Access functionality and Help has resources.
    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. Count Unique Values in a Category
    By fionny in forum Queries
    Replies: 2
    Last Post: 06-28-2013, 02:28 AM
  2. Unique values
    By helpaccess in forum Queries
    Replies: 3
    Last Post: 09-19-2011, 03:46 PM
  3. Creating a unique ID for a new set of values
    By slaterino in forum Programming
    Replies: 1
    Last Post: 08-24-2010, 09:35 AM
  4. Unique Values and Boolean Fields
    By Triad in forum Forms
    Replies: 1
    Last Post: 07-15-2010, 06:28 PM
  5. Count of Unique Values
    By vsmk in forum Queries
    Replies: 2
    Last Post: 03-14-2010, 12:07 AM

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