Solved

Using Record Number in formula

Posted on 2006-11-01
3
621 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

623 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