Solved

Using Record Number in formula

Posted on 2006-11-01
3
582 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 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

18 Experts available now in Live!

Get 1:1 Help Now