Formatting report after use of NZ function

D

dje

Sorry one other point. Having used the NZ([ ],0) function, I cannot select
the standard format. Is there any way of inserting commas and 2 decimal
points into the report?

Thanks
 
F

fredg

Sorry one other point. Having used the NZ([ ],0) function, I cannot select
the standard format. Is there any way of inserting commas and 2 decimal
points into the report?

Thanks

=Format(Nz([FieldName],0),"#,##0.00")
 
D

dje

thanks for your assistance - obvious answer but beyond my limited
understanding of access.

fredg said:
Sorry one other point. Having used the NZ([ ],0) function, I cannot select
the standard format. Is there any way of inserting commas and 2 decimal
points into the report?

Thanks

=Format(Nz([FieldName],0),"#,##0.00")
 
J

John Spencer

Try using

CCUR( NZ([ ],0))
or
CDbl( NZ([ ],0))

That should force the datatype to a numeric type and Access should display
the formats for numbers

--
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top