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

Round formula Crystal Reports

Status
Not open for further replies.

Mirann

Technical User
Mar 9, 2021
1
0
0
NL
Hi,

Hope someone can help me.
I have a report which can contain Oman Rial and Euro, so 3 and 2 decimals

When I use this formula there's no effect

If {Purchase.PchCurId} = "OMR" Then
Round({PurchaseLine.PchlGrossPrice}, 3)
Else
Round({PurchaseLine.PchlGrossPrice}, 2)

When I use the formula on field format, adjust, decimal, formula it' will give a error when I run the report
 
What is the error message. The formula appears to be formatted correctly.
 
I think you should check your data to make sure that the data consistently has all decimals.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top