PC Review


Reply
Thread Tools Rate Thread

Calculate report Total where subtotal uses IIf function

 
 
=?Utf-8?B?TWFubmllIEc=?=
Guest
Posts: n/a
 
      27th Jun 2006
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?V2F5bmUtSS1N?=
Guest
Posts: n/a
 
      27th Jun 2006
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

 
Reply With Quote
 
=?Utf-8?B?TWFubmllIEc=?=
Guest
Posts: n/a
 
      28th Jun 2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
function to calculate total using multiple criteria ccreed61 Microsoft Excel Worksheet Functions 6 21st Oct 2008 04:41 PM
how to calculate the total rows in each page of report kpendyal@gmail.com Microsoft Access Reports 1 5th Dec 2006 07:46 PM
How do i get Subtotal + Main total = Grand Total on Main Report ejike_discuss@hotmail.co.uk Microsoft Access Reports 0 26th Apr 2006 12:59 PM
How do I calculate FTE's in a monthly report if I know the total . =?Utf-8?B?UmVuZSBaZWxpc3Nlbg==?= Microsoft Access Reports 1 8th Aug 2005 03:13 AM
Using the DSum function to calculate a running total Crash Microsoft Access Form Coding 0 18th Aug 2003 11:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:39 PM.