Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Report sum problem

Discussion in 'Information Technology' started by H2OBOWL, Jul 28, 2006.

  1. H2OBOWL

    H2OBOWL
    Expand Collapse
    Guest

    I have a report that uses a query to display deposit and withdrawal amounts
    from a table. I'm trying to get the report to calculate the balance at the
    bottom, but using =Sum([Deposits]-[Withdrawals]) it just returns incorrect
    amounts. What am I doing wrong?
    Thank you.
     
  2. Loading...

    Similar Threads Forum Date
    UK British Sikh Report-2016 Breaking News Mar 24, 2016
    1984 The Story I Did Not Report In ’84 History of Sikhism Jun 28, 2015
    Opinion Top Green Beret Officer Forced to Resign Over Affair With WaPo Reporter Breaking News Jun 26, 2014
    United Sikhs New Report Shows Increasing Hate Attacks on Sikhs Sikh Organisations May 21, 2014
    Legal ACLU reports: Judge orders Sikh man, "Remove that rag, or Go to Jail! Breaking News Sep 27, 2013

  3. Debra Farnham

    Debra Farnham
    Expand Collapse
    Guest

    When you say "bottom", do you mean you have placed it in the report footer?

    Debra

    "H2OBOWL" <H2OBOWL@discussions.microsoft.com> wrote in message
    news:FE8232F0-9720-4C45-BBDD-0B4050B3A544@microsoft.com...
    >I have a report that uses a query to display deposit and withdrawal amounts
    > from a table. I'm trying to get the report to calculate the balance at
    > the
    > bottom, but using =Sum([Deposits]-[Withdrawals]) it just returns incorrect
    > amounts. What am I doing wrong?
    > Thank you.
     
  4. H2OBOWL

    H2OBOWL
    Expand Collapse
    Guest

    Yes, I made that mistake earlier, but it is definitley in the report footer.
    The individual totals for withdrawal and deposits work correctly
    =Sum([Withdrawals])
    and
    =Sum([Deposts])
    but it fails to subtract withdrawals from deposits and show the balance
    using the syntax above.
     
  5. Debra Farnham

    Debra Farnham
    Expand Collapse
    Guest

    I'm thinking you want

    =Sum([Withdrawals]) - Sum([Deposits])


    "H2OBOWL" <H2OBOWL@discussions.microsoft.com> wrote in message
    news:AFA52743-1E65-425A-BCC1-B0E51C2B92BA@microsoft.com...
    > Yes, I made that mistake earlier, but it is definitley in the report
    > footer.
    > The individual totals for withdrawal and deposits work correctly
    > =Sum([Withdrawals])
    > and
    > =Sum([Deposts])
    > but it fails to subtract withdrawals from deposits and show the balance
    > using the syntax above.
     
  6. Debra Farnham

    Debra Farnham
    Expand Collapse
    Guest

    Oops ... think I got that a little backwards

    =sum([Deposits]) - Sum([Withdrawals])


    "Debra Farnham" <nospam@nospam.com> wrote in message
    news:Ob3D$QToGHA.4292@TK2MSFTNGP05.phx.gbl...
    > I'm thinking you want
    >
    > =Sum([Withdrawals]) - Sum([Deposits])
    >
    >
    > "H2OBOWL" <H2OBOWL@discussions.microsoft.com> wrote in message
    > news:AFA52743-1E65-425A-BCC1-B0E51C2B92BA@microsoft.com...
    >> Yes, I made that mistake earlier, but it is definitley in the report
    >> footer.
    >> The individual totals for withdrawal and deposits work correctly
    >> =Sum([Withdrawals])
    >> and
    >> =Sum([Deposts])
    >> but it fails to subtract withdrawals from deposits and show the balance
    >> using the syntax above.

    >
    >
     
  7. H2OBOWL

    H2OBOWL
    Expand Collapse
    Guest

    Thank you!
     
  8. Steve Schapel

    Steve Schapel
    Expand Collapse
    Guest

    Or...
    =Sum(Nz([Deposits],0)-Nz([Withdrawals],0))

    --
    Steve Schapel, Microsoft Access MVP

    Debra Farnham wrote:
    > Oops ... think I got that a little backwards
    >
    > =sum([Deposits]) - Sum([Withdrawals])
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page