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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with crystal formula

Status
Not open for further replies.

ncchish

Programmer
Jul 29, 2002
86
US
I need help setting this up as a formula in Crystal Reports 2013. Any help is appreciated.

Gross_amt .05 = net_amt
Net_amt/ .05 = New_Gross_amount
 
Your first line does not make sense. Are you multiplying Gross_amt by .05 to get the net_amt? If so, then

net_amt := Gross_amt * .05;

but the second line would read something like this in a formula

New_Gross_amount := Net_amt/.05

Of course it is an assumption the New_Gross_amount and net_amount would be variables and thus needs to be defined (i.e., numbervar New_Gross_amount; );

 
Yes it should be net_amt := Gross_amt * .05;

I will try this.
 
If you do need to display the net_amt for anything you could combine the two formulas.

New_Gross_amount := (Gross_amt *.05)/.05, but that would not achieve anything (.05/.05)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top