|
Question : MS Access Report (NZ Function)
|
|
I have a simple report which is just 3 columns of numerical data, which some values are null. The 3rd column is the difference of the 1st 2. I am using the NZ function in the query, so I would get a 0.00 in the report where there is no data (Expr1: NZ([fieldname], 0). The problem is for the columns in the report that contains those values from the NZ function, I am unable to format to 2 decimal places. It actually shows up to 13 decimal places. And those that are round numbers, show no decimal places.
If I do not use the NZ function in the query, the formatting to fixed and 2 decimal places works. Are there any other options so I get 2 decimal places and zero values in place of the nulls?
|
|
Answer : MS Access Report (NZ Function)
|
|
You could do the formatting in the reports controls rather than in the query.
In query you could try: Expr1: format(NZ([fieldname], 0), "0.00")
|
|
|
|