A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

sum in a report



 
 
Thread Tools Display Modes
  #1  
Old January 31st, 2006, 06:51 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default sum in a report

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
  #2  
Old January 31st, 2006, 07:03 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default sum in a report

Did you try this for the Sum

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

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

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


"cmk" wrote:

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

  #3  
Old January 31st, 2006, 07:21 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default sum in a report

Ah yes - thank you

"Ofer" wrote:

Did you try this for the Sum

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

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

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


"cmk" wrote:

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

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameter thru Form Dialog Box for REPORT Sandy Setting Up & Running Reports 16 January 10th, 2006 10:06 AM
Reporting subreport total on main report BobV Setting Up & Running Reports 22 November 1st, 2005 03:19 AM
To Sharkbyte and all: Calculate a total values in group level Ally General Discussion 6 June 13th, 2005 08:16 PM
Help!! I'm running around in circles! CathyA New Users 19 December 12th, 2004 07:50 PM
Save Report With CreateReport Coding Issue Jeff Conrad Setting Up & Running Reports 8 July 12th, 2004 08:39 AM


All times are GMT +1. The time now is 10:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.