Format as currency

razorking

Registered User.
Local time
Yesterday, 23:16
Joined
Aug 27, 2004
Messages
332
Sigh....missing something easy again...damn, this frustrates me. Anyway, I have a query that has a field which is an expression. I want the result to display as currency. Ultimately this is going to be a control on a report. But I have tried formatting the control on the report as currecny and am having no success with that either. So if it is easier or better do do it on the report - fine - just hoping someone can give me an easy answer - because I'm sure the answer is easy and I am just daft.

Here is my query expression:
sales: IIf(IsNull([csales]),'0',([csales]))
 
Try this first:

sales: IIf(IsNull([csales]),0,([csales]))

and this is simpler:

sales: Nz([csales], 0)
 
Try this first:

sales: IIf(IsNull([csales]),0,([csales]))

and this is simpler:

sales: Nz([csales], 0)



Appreciate the suggestions, like them both but, it does not result in a currency format on the value returned..????
 
Hi -

Try carrying Paul's suggestion a step further:

Sales: format(Nz([csales], 0), "Currency")

Bob
 
Did you already put the currency format on the textbox? I assumed you had, and the quotes around the 0 would have caused the field to be treated as text. If that didn't work, this should:

sales: Format(Nz([csales], 0), "Currency")
 

Users who are viewing this thread

Back
Top Bottom