Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / November 2005

Tip: Looking for answers? Try searching our database.

How to summarize a calculated field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
verci - 31 Oct 2005 07:01 GMT
Hi
I've the following text boxes in the group header section of my report, they
do not obtain the data source from any table they are calculated fields,
Import is a field in my invoice table that holds the inicial value of
any given article, Retention is a boolean field in my invoice table, and
Subtotal is a calculated field .

txtSubtotal = Sum([Import])
txtTax = ([Subtotal]*10)/100
txtRetetion= IIf([Retention]=True,(([Subtotal]*4)/100),"")
txtTotal =
IIf([Retention]=True,(([Subtotal]+[txtTax])-[txtRetention]),[Subtotal]+[txtT
ax])

What I want is to put on the reports footer section the summarize grand
total of all the values returned by these calculated fields,  i.e
   .    txtGranSubtotal   would hold the summarize value of  txtSubtotal
        txtGranTaxt         would hold the summarize value of  txtTaxt
        txtGranRetetion   would hold the summarize value of  txtRetention
        txtGranTotal        would hold the summarize value of  txtTotal

So far I'm stuck, any help would be very appreciated!!!!!!

Best regards
Destin Richter - 31 Oct 2005 08:00 GMT
Generally speaking, if your report has a field called ItemCost, you can put
an expression in your report footer "=sum(ItemCost)"  that will total up the
values for you.  It is also helpful if you can have a query as the report
source that calculates as many fields as possible.  Get back to me if this
doesn't help.

Destin Richter
richter@newmexico.com

> Hi
> I've the following text boxes in the group header section of my report, they
[quoted text clipped - 20 lines]
>
> Best regards
verci - 31 Oct 2005 08:56 GMT
hi
It did not work, if I use the format you sugested when I run the report it
asked me for the value as if it where another parameter value i.e.
=sum(ItemCost)  , access prompt me for ItemCost, plese I don't know what am
I doing wrong.

regards

> Generally speaking, if your report has a field called ItemCost, you can put
> an expression in your report footer "=sum(ItemCost)"  that will total up the
[quoted text clipped - 16 lines]
> > txtRetetion= IIf([Retention]=True,(([Subtotal]*4)/100),"")
> > txtTotal =

IIf([Retention]=True,(([Subtotal]+[txtTax])-[txtRetention]),[Subtotal]+[txtT
> > ax])
> >
[quoted text clipped - 8 lines]
> >
> > Best regards
Tom Lake - 31 Oct 2005 11:50 GMT
> Hi
> I've the following text boxes in the group header section of my report,
[quoted text clipped - 17 lines]
>         txtGranRetetion   would hold the summarize value of  txtRetention
>         txtGranTotal        would hold the summarize value of  txtTotal

I've always had to do something like this:

txtGranSubtotal = Sum(Sum([Import]))
txtGranTax = Sum(([Subtotal]*10)/100)
txtGranRetetion = Sum(IIf([Retention]=True,(([Subtotal]*4)/100),""))
txtTotal =
Sum(IIf([Retention]=True,(([Subtotal]+[txtTax])-[txtRetention]),[Subtotal]+[txtTax])

Tom Lake
verci - 02 Nov 2005 07:33 GMT
Thanks, for your help!!

> Hi
> I've the following text boxes in the group header section of my report, they
[quoted text clipped - 7 lines]
> txtRetetion= IIf([Retention]=True,(([Subtotal]*4)/100),"")
> txtTotal =

IIf([Retention]=True,(([Subtotal]+[txtTax])-[txtRetention]),[Subtotal]+[txtT
> ax])
>
[quoted text clipped - 8 lines]
>
> Best regards
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.