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

Issue in suppressing a text object conditionally

Status
Not open for further replies.

dev1212

Programmer
May 11, 2010
117
US
Hi,

I want to display '$0.00' when the amount is null or blank.
I cannot use 'Convert database null values to default' as i am using distinct count for another field.

I created a text object and wrote '$0.00' in it and on
Right click -> Format field -> on formula for conditional suppress of that field

IsNull(ACCT.AMT)=FALSE
or
Trim(ToText(ACCT.AMT)) =''


It works fine most of the time but i am getting '$0.00' randomly on the report like,

My Report is like,

Name Amount Active
AXX $2300.00 1
AXB $4732.21 0
$0.0
AXD $0.0 1
AXF $765.22 1
AXN $0.0 0
AXP $4327.43 1
AXQ $877.32 0
$0.0
AXZ $877.33 1



How to avoid the occurence of '$0.0' only when the amount is null.


Any solution would be greatly appreciated.


Thanks






 
ok..
Forget about this guys.. i changed the SQL and used decode funtion to return 0 when NULL..
This issue is solved now..

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top