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

conditional getting a new "field" in a Query ???

Discussion in 'Information Technology' started by Martin, Nov 9, 2005.

  1. Martin

    Martin
    Expand Collapse
    Guest

    In a Query, we can create a new query field by (for example) : totoal
    amount: month amount , and then set the choice to SUM


    My question is:

    I only want to sum up some part of the "month amount" (for example, if
    [company]="abc company" ) , however, I don't like to use the CONDITION
    choice, because other fields needs the whole data.

    How to do?

    Thanks!


    Martin
     
  2. Loading...

    Similar Threads Forum Date
    Inspirational Unconditional love for the Guru Videos Sep 4, 2010
    General Unconditional Love Hard Talk Jun 28, 2008
    Pure and Unconditional Love for God Gurmat Vichaar Feb 18, 2008
    Getting A Sikh Name Questions and Answers Jul 29, 2016
    Getting Something Off Your Chest Always Makes You Feel Better Hard Talk May 15, 2016

  3. MacDermott

    MacDermott
    Expand Collapse
    Guest

    If you want a separate column for each company, you might consider using a
    crosstab query.

    If you really just want a single column for "abc company", but also need
    sums, etc for all data, you can define your field like this:
    ABCAmount: IIF([company]="abc company" , [month amount], 0)
    and sum that.

    "Martin" <lajitong888@21cn.com> wrote in message
    news:u$Z6UnM5FHA.724@TK2MSFTNGP14.phx.gbl...
    >
    > In a Query, we can create a new query field by (for example) : totoal
    > amount: month amount , and then set the choice to SUM
    >
    >
    > My question is:
    >
    > I only want to sum up some part of the "month amount" (for example, if
    > [company]="abc company" ) , however, I don't like to use the CONDITION
    > choice, because other fields needs the whole data.
    >
    > How to do?
    >
    > Thanks!
    >
    >
    > Martin
    >
    >
     
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