Negative Numbers Displaying Positive (1 Viewer)

derekben

Registered User.
Local time
Today, 14:51
Joined
Jul 1, 2013
Messages
15
Hey Pals,

I am trying to have a number that is negative hold its negative value but show as positive when it is displayed on a report. Any suggestions?


Thanks!!
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 11:51
Joined
Aug 30, 2003
Messages
36,123
How about:

=Abs(FieldName)
 

derekben

Registered User.
Local time
Today, 14:51
Joined
Jul 1, 2013
Messages
15
I am making a financial statement. We need the expenses to hold a negative value and show up on the report as a positive number. Using the Absolute value function changes the number to a positive number without holding its negative value. Thanks
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 11:51
Joined
Aug 30, 2003
Messages
36,123
It changes the display of the number. You can still do math using the field name and it should be treated as a negative. For instance:

=Sum(FieldName)

will still use the actual negative values.
 

derekben

Registered User.
Local time
Today, 14:51
Joined
Jul 1, 2013
Messages
15
We are running the report through a query so we can not change the fields on the report. When the absolute value is added to the query, it changes all the negatives to positives but does not keep the negative value.
 

pbaldy

Wino Moderator
Staff member
Local time
Today, 11:51
Joined
Aug 30, 2003
Messages
36,123
My suggestion was to use the Abs() function on the report, since it's the display you're wanting to change. I suppose you could add a field to the query. In design view:

ValueForDisplay: Abs(FieldName)

and use that for display.
 

Users who are viewing this thread

Top Bottom