Results 1 to 8 of 8
  1. #1
    naks is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2013
    Posts
    13

    Exclamation how to calculate sum with IF Else. urgent help!

    Hi.


    I Am new here. can anyone help me out ?

    I have debit & credit column. Which I use this in the report --> =IIf([PaymentMet_trans]=2,"",[Amount])
    debit = 1 , credit = 2

    Now, i would like to have the total sum of it. according to the debit & credit separately instead of the whole total sum.

  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,530
    Put a Sum around the IIf, and change the double quotes to a zero.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    naks is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2013
    Posts
    13
    i did this : =Sum(IIf([PaymentMet_trans]=2,0,[Amount]))

    error pop up : this expression is typed incorrectly or is too complex etc etc ...

  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,530
    That looks okay; where do you have it?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    naks is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2013
    Posts
    13
    I had it at the paymentMet_trans footer

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    naks is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2013
    Posts
    13
    I have summarized the database as much. but im not sure how to upload the file.

    i have tried using the manage attachments, it didn't show up.

    maybe you can leave me your email

  8. #8
    AlexHedley's Avatar
    AlexHedley is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    England
    Posts
    180

    how to calculate sum with IF Else. urgent help!


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

Similar Threads

  1. In need of urgent HELP!
    By Noskills in forum Database Design
    Replies: 2
    Last Post: 04-21-2013, 09:36 AM
  2. Help needed urgent
    By diljot5394 in forum Access
    Replies: 1
    Last Post: 04-23-2012, 02:44 AM
  3. Replies: 3
    Last Post: 12-18-2011, 04:17 AM
  4. please help urgent...thanks
    By dadas in forum Access
    Replies: 4
    Last Post: 10-13-2011, 01:42 PM
  5. I need help! Urgent! :(
    By Suzan in forum Database Design
    Replies: 0
    Last Post: 04-08-2006, 11:58 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