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!

show 0.00 instead of ""(blank)

Status
Not open for further replies.

simeybt

Programmer
Nov 3, 2003
147
GB
I have a report with a list of different results on it. some of the fields do not contain any values. i want the field to show up as a 0 or £0.00 instead of ""(blank field).

Thanks

Simon
 
Set the format for each textbox:
£#,##0.00;(£#,##0.00)

or whatever.
 
That only formats the result if there is a value in the text box. If the query returns no value then nothing at all is shown in the text box.

Simon
 
Hi simeybt,

There are (up to) 4 semicolon-separated formats you can provide and the fourth is for nulls, so you could try ..

[blue][tt];;;£0.00[/tt][/blue]

If you want to use other formats for other values just enter them in the appropriate place; to combine with lupins' example ..

[blue][tt]£#,##0.00;(£#,##0.00);;£0.00[/tt][/blue]

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
 
Thanks for the responses guys, i got a fix for it before i got tony's reply. i'll post it here incase someone has the same problem. i got round my problem by using the IIF() and IsNull() function. here is and example

Code:
=IIf(IsNull([CSI 2ND LINES.SumOfQuantity]),0,[CSI 2ND LINES.SumOfQuantity])

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top