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  

Can't figure out what I'm doing wrong with running sum



 
 
Thread Tools Display Modes
  #1  
Old January 19th, 2010, 08:32 PM posted to microsoft.public.access.reports
Fred
external usenet poster
 
Posts: 1,451
Default Can't figure out what I'm doing wrong with running sum

For the first time I tried doing a running sum of a numerical field in the
detail of a report. The instructions look so simple, but apparently not
simple enough for me.

In my first attempt, I was attempting a running sum of a single precision
numerical field (Days) which would reset for each group. So I put a
=sum([days]) control in the set the "running sum" property to "over group".
Instead of a running sum of the "days" field, it just increments by 50 each
line. Don't know where the 50 came from.

So I made a tiny DB to test/ search for the error of my ways. The numeric
field is quan1. No grouping, I put o =sum([quan1]) control in the detail
section, set "running sum" property to "over all" Same problem, it
increments by the same number every time, except this time it increments (on
every record) by whatever the "quan1" value is is the second record in the
table.

Any idea what I am doing wrong?

Thank you in advance.

  #2  
Old January 19th, 2010, 09:05 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Can't figure out what I'm doing wrong with running sum

You are making this too hard. Remove the Sum() and just try:
Control Source: [days]
--
Duane Hookom
Microsoft Access MVP


"Fred" wrote:

For the first time I tried doing a running sum of a numerical field in the
detail of a report. The instructions look so simple, but apparently not
simple enough for me.

In my first attempt, I was attempting a running sum of a single precision
numerical field (Days) which would reset for each group. So I put a
=sum([days]) control in the set the "running sum" property to "over group".
Instead of a running sum of the "days" field, it just increments by 50 each
line. Don't know where the 50 came from.

So I made a tiny DB to test/ search for the error of my ways. The numeric
field is quan1. No grouping, I put o =sum([quan1]) control in the detail
section, set "running sum" property to "over all" Same problem, it
increments by the same number every time, except this time it increments (on
every record) by whatever the "quan1" value is is the second record in the
table.

Any idea what I am doing wrong?

Thank you in advance.

  #3  
Old January 19th, 2010, 09:50 PM posted to microsoft.public.access.reports
Fred
external usenet poster
 
Posts: 1,451
Default Can't figure out what I'm doing wrong with running sum

Thanks Daune, that did it.

I guess I was summing the sum or something.

Fred

 




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 07:15 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.