Re: Running Total .. wrong total
From: Craig (brokenleg_at_heartattack.com)
Date: 07/05/04
- Next message: Adrian Theodorescu: "Using parameters in Crystal Reports"
- Previous message: Craig: "Re: Running Total .. wrong total"
- In reply to: Craig: "Re: Running Total .. wrong total"
- Next in thread: Jack D. Ripper: "Re: Running Total .. wrong total"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Jul 2004 10:13:44 +0100
Just re-read my posting. The:
shared numbervar runTotPC;
runTotPC;
formula is used in my header AND footer.
"Craig" <brokenleg@heartattack.com> wrote in message
news:40e91aa4$0$7806$db0fefd9@news.zen.co.uk...
> I have now swopped to a forumula to keep my running total.
>
> Worked 100% on the first page (Which used to include the value of the
first
> record of the next page in the running total field).
>
> HOWEVER, now, the page header on page 2, which should show the value of
the
> page footer on the previous page, shows the previous page total, PLUS the
> first record on the next pages total! So it's wrong there now.
>
> Agghh!
>
> Basically, I have a hidden formula in the detail section:
>
> shared numbervar runTotPC;
> runTotPC := runTotPC + {table.fieldnametoadd};
>
> Then, in the page footer and page header, I have:
>
> shared numbervar runTotPC;
> runTotPC;
>
> As I say, works great on the first page (Where the page header is
> supressed,a s it's the first page). But then added the first record total
on
> the second page to the page header!
>
> Something like:
>
> PAGE 1:
>
> Rec 1 100
> Rec 2 200
> Rec 3 150
> ..
> ..
> ..
>
> Page Footer: 450 <---- Correct...
>
>
>
> PAGE 2:
>
> Page Header: Running total: 500 <--- Wrong! Because Rec 4 is included.
>
> Rec 4: 50 <--- added to page header!!
> Rec 5: 100
> Rec 6: 200
>
> Page footer: 800
>
>
> See?
>
>
> "Craig" <brokenleg@heartattack.com> wrote in message
> news:40e90f9e$0$7792$db0fefd9@news.zen.co.uk...
> > I have a report that shows n number details sections on a page. At the
end
> > of each page, I have a running total displayed. However, I find that
this
> > total is wrong, and I have found the pattern why.
> >
> > It looks like crystal (v7) adds the field that I am summing up, to the
> > running total, and then adds that detail section to the page. However,
if
> cr
> > finds it's at the end of the page, and that the detail secion is too
large
> > for the page, it (correctly) moved it to the next page. However, the
total
> > on the previous page still includes the value of the detail section
moved
> to
> > the next page!
> >
> > Is this possible? And if so, is there a way to resolve this?
> >
> >
>
>
- Next message: Adrian Theodorescu: "Using parameters in Crystal Reports"
- Previous message: Craig: "Re: Running Total .. wrong total"
- In reply to: Craig: "Re: Running Total .. wrong total"
- Next in thread: Jack D. Ripper: "Re: Running Total .. wrong total"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|