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  

Running sum calculation



 
 
Thread Tools Display Modes
  #1  
Old August 17th, 2009, 08:36 PM posted to microsoft.public.access.reports
Judith
external usenet poster
 
Posts: 54
Default Running sum calculation

I have grouped areport by product ID and within the group do a running sum on
quantity (oquantRS). I want to test the running sum value against three
values I have at the group level

=IIf([oquantRS][prodTot],"NOT POSSIBLE",IIf([oquantRS][prodTot47],"Con
48",IIf([oquantRS][prodTot46],"Con 47",IIf([oquantRS][prodTot45],"Con
46","Con 45"))))

Why is it flaky. It seems to work for some rows but not others

Thanks


  #2  
Old August 17th, 2009, 09:06 PM posted to microsoft.public.access.reports
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Running sum calculation

Maybe some nulls. Try wrapping with Nz like this - Nz([prodTot46], 0)
--
Build a little, test a little.


"judith" wrote:

I have grouped areport by product ID and within the group do a running sum on
quantity (oquantRS). I want to test the running sum value against three
values I have at the group level

=IIf([oquantRS][prodTot],"NOT POSSIBLE",IIf([oquantRS][prodTot47],"Con
48",IIf([oquantRS][prodTot46],"Con 47",IIf([oquantRS][prodTot45],"Con
46","Con 45"))))

Why is it flaky. It seems to work for some rows but not others

Thanks


 




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


All times are GMT +1. The time now is 06:36 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.