Results 1 to 3 of 3
  1. #1
    TWD is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    7

    How to Calculate this Grand Total

    Ok, this should be my last issue today. lol This is in relation to my other posts. I have a field on my report for grand total. Currently, the control source is this:




    =SUM([PAB_AMOUNT]) + [PHR_AMOUNT])


    I need to add my new total to this equation, and I don't know how. My new total was created with a conditional expression:

    =Sum(IIf([WAGE TYPE] In ("9349"),[PAB_AMOUNT],0))


    Is there any way to do this? My only thought is to create a new table field and create an append query with this equation and then add my new table field to the original SUM expression, but I really don't want to go that route.

  2. #2
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    The first SUM has the wrong number of parentheses. Assuming that the SUM is for both fields, you could simply do this to add them:

    =SUM([PAB_AMOUNT] + [PHR_AMOUNT]) + Sum(IIf([WAGE TYPE] In ("9349"),[PAB_AMOUNT],0))

  3. #3
    TWD is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    7
    Quote Originally Posted by pdebaets View Post
    The first SUM has the wrong number of parentheses. Assuming that the SUM is for both fields, you could simply do this to add them:

    =SUM([PAB_AMOUNT] + [PHR_AMOUNT]) + Sum(IIf([WAGE TYPE] In ("9349"),[PAB_AMOUNT],0))

    That worked perfect. Thanks so much!

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

Similar Threads

  1. How to calculate?
    By cap.zadi in forum Queries
    Replies: 1
    Last Post: 11-09-2011, 07:29 AM
  2. Grand Total Field ???
    By damo1995 in forum Forms
    Replies: 6
    Last Post: 02-10-2011, 02:43 PM
  3. Grand total of field on a subreport
    By degras in forum Reports
    Replies: 9
    Last Post: 02-03-2011, 12:09 PM
  4. calculate value from two tables
    By victor in forum Programming
    Replies: 3
    Last Post: 08-20-2010, 12:13 PM
  5. :?: newbie...grand total?
    By PnerraD in forum Access
    Replies: 1
    Last Post: 08-24-2006, 06:28 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