Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using Record Number in formula

Posted on 2006-11-01
3
Medium Priority
?
624 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 500 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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 …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

660 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