Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Formula fields to create a new field

Status
Not open for further replies.

ruma20045

MIS
Sep 20, 2005
5
US
I am tring to create field C = @a + @b where @a and @b are 2 formula fields. How can I achieve this? any help would be appreciated.
 
Hi,
Did you try :?
@C
Code:
@a + @b

What happened?




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Create the formula and use:

{@a} + {@b}

If you get an error, try posting technical information, note that your post is devoid of anything about the software used, dataqbase, what's in the formulas, etc.

If @A or @B use summary functions, then you'll want to use a different method to summarize them, such as the exact same syntax within, or variables within a summing formula, and then displaying them later.

-k
 
Hi,
It is a new formula so put it where you now have {@a} and {@b} ( replacing them or not, as you want0

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Hi,Does not work in what way?



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
can you not create a new formula field?

In crystal 8.5 and older, insert, field object, formula field, rt click, new.

In crystal 9 and newer, go to fiel explorer, formula fields, rt click, new.


Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
Crystal lets you use formulas within formulas, and if there is a limit, I've not found it.

If you're not allowed to add, maybe the fields are not numeric. If {@a} & {@b} displays the two values, that's the problem. Try ToNumber({@a}) + ToNumber({@b})


[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top