Results 1 to 5 of 5
  1. #1
    spacekowboy is offline Novice
    Windows XP Access 2003
    Join Date
    May 2012
    Posts
    17

    Summing specific fields on a report

    Hi, in the footer of my report I have a
    field that sums the Transaction Amounts - =Sum([Transaction Amount])

    I would also like to break the totals down further by Transaction Type Codes.

    Something like =Sum([Transaction Amount]) where Transaction Type Code = AL-Exp-Paid



    Can someone help me with the syntax for this?

    Thanks

  2. #2
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332
    You need to put groups on your report.

    http://www.youtube.com/watch?v=uVHez5A6v0I

  3. #3
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,522
    Or this type of thing:

    =Sum(IIf([Transaction Type Code] = "AL-Exp-Paid", [Transaction Amount], 0))

    But if there are several a subreport based on a totals query would be more dynamic.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    spacekowboy is offline Novice
    Windows XP Access 2003
    Join Date
    May 2012
    Posts
    17
    pbaldy, it looks like that will work! Much appreciated

    Quote Originally Posted by pbaldy View Post
    Or this type of thing:

    =Sum(IIf([Transaction Type Code] = "AL-Exp-Paid", [Transaction Amount], 0))

    But if there are several a subreport based on a totals query would be more dynamic.

  5. #5
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,522
    Happy to help!
    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. Summing DateDiff Fields
    By 1Christmas2 in forum Queries
    Replies: 3
    Last Post: 09-29-2013, 01:57 PM
  2. Replies: 1
    Last Post: 02-27-2012, 09:50 AM
  3. Summing Fields between tables
    By marrone12 in forum Queries
    Replies: 9
    Last Post: 09-16-2011, 12:37 PM
  4. Summing Calculated Fields
    By Zoran in forum Queries
    Replies: 1
    Last Post: 03-31-2010, 01:59 PM
  5. Replies: 0
    Last Post: 01-24-2009, 11:40 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