Welcome to SPN

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

Sign Up Now!

Calculate report Total where subtotal uses IIf function

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

  1. Mannie G

    Mannie G
    Expand Collapse
    Guest

    I have a report where the individual lines of data contain EITHER value in
    Euros or in Pounds Sterling. I use the IIf function to either calculate a
    sales cost using an echange rate in the database and quantity of items OR if
    it is not in Euros to simply calculate the cost times the quantity. The
    Subtotal calculation works well.

    In the fotter of the section I want to calculate the sum of all the
    subtoatal; However I cannot get = Sum ([Subtotal]) to work. I have tried to
    use the IIf expression in the same way as above but I can't get this to work
    either. The format of the Subtotal and Total Fields are 'Currency'.

    CAn anyone help!
    --
    Thanks

    Mannie G
     
  2. Loading...

    Similar Threads Forum Date
    India Reading Calculated Banis Breaking News Mar 6, 2013
    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

  3. Wayne-I-M

    Wayne-I-M
    Expand Collapse
    Guest

    Hi Mannie

    Don't sum the [subtotal] but simply =sum([FieldName])

    Hope this helps

    --
    Wayne
    Manchester, England.



    "Mannie G" wrote:

    > I have a report where the individual lines of data contain EITHER value in
    > Euros or in Pounds Sterling. I use the IIf function to either calculate a
    > sales cost using an echange rate in the database and quantity of items OR if
    > it is not in Euros to simply calculate the cost times the quantity. The
    > Subtotal calculation works well.
    >
    > In the fotter of the section I want to calculate the sum of all the
    > subtoatal; However I cannot get = Sum ([Subtotal]) to work. I have tried to
    > use the IIf expression in the same way as above but I can't get this to work
    > either. The format of the Subtotal and Total Fields are 'Currency'.
    >
    > CAn anyone help!
    > --
    > Thanks
    >
    > Mannie G
     
  4. Mannie G

    Mannie G
    Expand Collapse
    Guest

    Hi Wayne

    No Joy with your suggestion. Subtotal is the field name. If I use the
    function =Sum([Subtotal]) then when I runthe report I get a text box with
    ENTER PARAMETER VALUE Subtotal.
    I have also changed the name of the field to see if it makes any difference,
    I get the same result.
    --
    Thanks

    Mannie G


    "Wayne-I-M" wrote:

    > Hi Mannie
    >
    > Don't sum the [subtotal] but simply =sum([FieldName])
    >
    > Hope this helps
    >
    > --
    > Wayne
    > Manchester, England.
    >
    >
    >
    > "Mannie G" wrote:
    >
    > > I have a report where the individual lines of data contain EITHER value in
    > > Euros or in Pounds Sterling. I use the IIf function to either calculate a
    > > sales cost using an echange rate in the database and quantity of items OR if
    > > it is not in Euros to simply calculate the cost times the quantity. The
    > > Subtotal calculation works well.
    > >
    > > In the fotter of the section I want to calculate the sum of all the
    > > subtoatal; However I cannot get = Sum ([Subtotal]) to work. I have tried to
    > > use the IIf expression in the same way as above but I can't get this to work
    > > either. The format of the Subtotal and Total Fields are 'Currency'.
    > >
    > > CAn anyone help!
    > > --
    > > Thanks
    > >
    > > Mannie G
     

Share This Page