Welcome to SPN

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

Sign Up Now!

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
    >
    >
     

Share This Page