Results 1 to 3 of 3
  1. #1
    jenyfer49507 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    2

    Combining results of table

    I have a table where the end results looks like the below table. I want to now add some of the results together. Such as add the RI and SL (these are the Adds) results together, the CH and SE (these are the changes) results together and the TM (terms) results will be left alone. Not sure how to do this in access.


    Add, Change or Term Sum
    CH 13870
    RI 793
    SE 676
    SL 256
    TM 1020

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    One way to try:

    In a textbox in form or report footer try expressions in the ControlSource, like:
    = Sum(IIf([Add, Change or Term] = "RI" Or [Add, Change or Term] = "SL", [Add, Change or Term], 0)

    Another way is to construct a field in query with expression and use that constructed field for grouping criteria:
    GroupID: IIf([Add, Change or Term] = "RI" Or [Add, Change or Term] = "SL", 1, IIf([Add, Change or Term] = "CH" Or [Add, Change or Term] = "SE", 2, 3))
    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.

  3. #3
    jenyfer49507 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    2

    Thanks

    That is exactly what I needed.

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

Similar Threads

  1. Combining Results of Cross Tab Queries
    By kkyork in forum Queries
    Replies: 4
    Last Post: 06-06-2012, 09:10 AM
  2. Combining results from unrelated tables
    By jwreding in forum Queries
    Replies: 7
    Last Post: 08-12-2011, 01:19 PM
  3. Combining Table Fields
    By jsimard in forum Access
    Replies: 2
    Last Post: 02-22-2011, 04:05 PM
  4. Combining Tables into one table
    By softspoken in forum Access
    Replies: 2
    Last Post: 04-22-2010, 02:37 PM
  5. Combining results
    By LANCE in forum Queries
    Replies: 0
    Last Post: 06-11-2009, 07:38 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