Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: running totals Post Reply Post New Topic
Author Message
dlamborn
Newbie
Newbie
Avatar

Joined: 10 Jun 2009
Online Status: Offline
Posts: 1
Quote dlamborn Replybullet Topic: running totals
     Posted: 10 Jun 2009 at 12:58pm

Trying to create a running total

 

1.         formula1 (Group Header)                 WhilePrintingRecords;CurrencyVar TaxDue; TaxDue:=0

 

2.         formula2 (Detail Section)                 WhilePrintingRecords;CurrencyVar TaxDue; TaxDue:= TaxDue + {@H}

 

3.         formula3 (Group Footer)                              WhilePrintingRecords;CurrencyVar TaxDue; TaxDue;

 

4.         @H  (Is a Group Calculated Total)  formula = {@F} * {@TR}

 

5.         I get an error when I try to Save and Close the formula

  
          "The remaining text does not appear to be part of the formula"
                WhilePrintingRecords; (From here on out it is highlighted)
 

IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 11 Jun 2009 at 6:57am
add the word 'Shared' before the currencyvar.  Crystal is probably complaining of the scope.  I also print each line on its line, but that might not matter.
 
Also, which formula are you getting the error in?  If it is all of them, I would try placing them on their line.  Also if @H is causing problems, why call it that way, why not move the calculation into the formula...you might try this to trouble shoot.
 
HTH
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum