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!

How to get $0.00 to show in text box on report

Status
Not open for further replies.

SAFE

Programmer
Nov 21, 2000
2
US
I have a report with currency fields. If no amount is present I want the field to show $0.00. Instead it just comes up blank. I've tried formating the field in the table and the text box but nothing changes.
Any answers?
 
Add an unbound text box to your report, set its format to Currency, and its control source to something like this:
Code:
=IIf([YourAmountField] Is Null,0,[YourAmountField])

I'm CosmoKramer, and I approve this message.
 
Setting the format property should work. Try:
$#,##0.00[Green];($#,##0.00)[Red];"$0.00";"$0.00"
You can remove the colors if you wish.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top