Results 1 to 4 of 4
  1. #1
    Siiig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    30

    Post Totaling Multiple Rows

    Hey Everyone,

    This feels like something that should be simple, but I'm not having any luck approaching it.

    Data:
    ID Available Warehouse
    001 5 000
    001 4 001
    001 3 002

    I'd like to take this information, and wind up with...

    001 12

    I've done things like CONCATENATING this data, which this forum actually helped me out with, but it seems like this shouldn't be so complicated?

    Thanks!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    A totals query:

    SELECT ID, Sum(Available) As TotalAvailable
    FROM TableName
    GROUP BY ID
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Siiig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    30
    Ahhh! I had one of my columns set to "Group By" instead of "Sum" and another set to "Group By" instead of "Where"

    No wonder it started breaking it out instead of adding it!

    Thank's for the point in the right direction pbaldy.

    And off topic, currently reading Atlas Shrugged. Really enjoy it so far ^^;

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help!

    I'm due for a re-read myself; it's a bit of a bear to read, but worth it IMHO. Just watched the second movie.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Query on multiple rows
    By TPH in forum Access
    Replies: 10
    Last Post: 09-02-2011, 12:52 PM
  2. Comnbining multiple rows into one row
    By Equalizer700 in forum Queries
    Replies: 1
    Last Post: 04-19-2011, 03:51 AM
  3. Concatenate Multiple Rows into One
    By Knarly555 in forum Queries
    Replies: 5
    Last Post: 11-12-2010, 06:51 PM
  4. Inserting multiple rows using a value in a field
    By z1efuller1 in forum Queries
    Replies: 1
    Last Post: 01-06-2010, 11:20 AM
  5. Replies: 5
    Last Post: 12-10-2009, 10:33 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