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

SURPRESSING ZERO FIELDS IN CRYSTAL REPORTS

Status
Not open for further replies.

jorg32

Programmer
Jul 10, 2003
57
BE
Hello,

Can somebody tell me how to surpress the following :

E.G. = 150.00 euro has to be 150
150.75 euro has to stay 150.75

So every time I have a double zero behind the comma, I have to surpress them (double zero's only!!)

Thanks for helping me!!
 
Right click the field on the report.
Choose Format Field.
Click the Number tab.
Click the Customize button.
Under the Number tab, click the X+2 button to the right of decimals.
In the editor, enter the following logic:
Code:
//don't modify this.  CurrentFieldValue is a crystal built in function
if CurrentFieldValue - int(CurrentFieldValue) = 0 then
    0
else
    2

Save and Close and the dialog boxes and test it.

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top