Solved

partial results in Crystal Report 4.6

Posted on 2000-03-05
2
232 Views
Last Modified: 2013-12-25
Hi,
I want to make a Report in Crystal Reports 4.6 like this:

Product_Id 00045
Moves:
  Date  In   Out   Partial R.
  12/02 10    0       10
  13/02  0    5        5
  14/02  0    4        1

Product_id  00046
Moves:
  Date  In   Out   Partial R.
  11/02 12    0       12
  14/02  0    3        9
  15/02  3    0       12

Well, the problem is: I don't know how to show  the partial Result column.

When I use the Previous function in a formula:
@fPartialResult = In - Out + Previous(@fPartialResult)
I get a error, the formula can't call itself.
If I use another formula for trick, the error , the formula can't call itself directly or indirectly appears.

I need HELP!
0
Comment
Question by:cero
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 250 total points
ID: 2587012
Create the formula field as:

WhilePrintingRecords;
numberVar Partial;
Partial := Partial + {Table.In} - {Table.Out};

This will give a running total.
0
 
LVL 2

Author Comment

by:cero
ID: 2606758
I will test.
Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now