Solved

Using Record Number in formula

Posted on 2006-11-01
3
608 Views
Last Modified: 2008-02-01
I have a report that uses the CR special field of "Record Number."  Also, the report has a formula field that generates a number, call it "Special Number."  I want to come up with the Sum({"Record Number} - {Special Number}).  How can I use the Crystal Reports "Record Number" field in a formula? The field does not come up in the Formula Workshop.
0
Comment
Question by:rbnaz
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
frodoman earned 125 total points
ID: 17853120
It won't work directly with a sum, but you can write a formula to accumulate the values:

shared numberVar MyTotal;
MyTotal := MyTotal + (RecordNumber - {@SpecialNumber});

Then where you want to see the total just create a formula to show the variable results:

shared numberVar MyTotal;


0
 

Author Comment

by:rbnaz
ID: 17854122
I get an error message of "This filed name is not known" for {RecordNumber}.
0
 

Author Comment

by:rbnaz
ID: 17854131
I realzed my error and your formula worked!  Thanks.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…

790 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