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

Field format changing on its own.

Status
Not open for further replies.

kwalters135

Programmer
Dec 29, 2005
48
US
I am using CR XI R2 on Win XP.

In a detail section of a report, there are numeric fields whose number format will change on its own.

The numbers are formatted as (1234.00). However, when I close the report and reload it in crystal, the number format will change to custom. Within custom, it is set to show negative numbers with a "-" instead of parens.

Not sure how or why this is changing on its own.

 
Each PC using Crystal can have its own defaults. YOu'll find them at File > Options > Fields.

You can show the value via a formula field and use ToText to format it. It takes a bit of time but can be relied on not to change.

Code:
if {value} < 0
then "(" & ToText({value}, 2) & ")"
else ToText({value}, 2)

[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