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 / Reports / Printing / January 2006

Tip: Looking for answers? Try searching our database.

sum in a report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cmk - 31 Jan 2006 18:51 GMT
I am having trouble summing for specific criteria.  I have a group called
SType and another group under that called MType. I want a subtotal of all
amounts that have a transaction type of "REDEMPTION" and another subtotal for
all transation type of "PATRONAGE EQUITY" for the SType group.  I have tried
running sums on groups to no avail.  Now I have done the following, but it
also doesn't work any suggestions are very welcomed.

I have a field called [ReTo]
=IIf([TRANSACTION NAME]="redemption",[Amount],0) in my detail section

Another field called [PaTo]
=IIf([TRANSACTION NAME]="patronage equity",[Amount],0) in my detail section

this gives me what I expected, in my detail section it gives me an amount if
the statement is true and a 0 if false

then in my Stype footer I have two fields called [ReTot] and [PaTot] and
each one of them is a running sum on [ReTo] and [PaTo]  - but it isn't summing

If Redemption was the last line of the detail it will pick it up, but if not
it doesn't and the same holds true for patronage equity
Ofer - 31 Jan 2006 19:03 GMT
Did you try this for the Sum

=Sum(IIf([TRANSACTION NAME]="redemption",[Amount],0))

=Sum(IIf([TRANSACTION NAME]="patronage equity",[Amount],0))

Signature

\\// Live Long and Prosper \\//
BS"D

> I am having trouble summing for specific criteria.  I have a group called
> SType and another group under that called MType. I want a subtotal of all
[quoted text clipped - 17 lines]
> If Redemption was the last line of the detail it will pick it up, but if not
> it doesn't and the same holds true for patronage equity
cmk - 31 Jan 2006 19:21 GMT
Ah yes - thank you

> Did you try this for the Sum
>
[quoted text clipped - 23 lines]
> > If Redemption was the last line of the detail it will pick it up, but if not
> > it doesn't and the same holds true for patronage equity
 
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.