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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting the numeric values to two decimal places in Access reports 1

Status
Not open for further replies.

ppullag1

IS-IT--Management
Nov 1, 2004
5
US
Hi there,

I am trying to format my calculated fields in an Access Report to have only two decimal places. I tried setting the property "decimal places =2" which did not work. Then, I tried setting "Format = Fixed ", "Decimal places = 2" for those fields in the reports which also did not work.

Any help is appreciated. Thanks in Advance.
 
Try

=Format(CalculationFormula, "#,##0.00")

as the controlsource

Hope this helps
 
Thanks Earthandfire for the reply but it did not work. The control source I used is a calculated field in a query and I just used the field from the query as the control source, if that makes any difference. I tried the format command but it did not work.
 
Try either:

Assume fieldname form query is CalcField1 then as the control source use:

=Format(CalcField1, "#,##0.00")

or:

Assuming a simple calculation in the query of:

CalcField1:Format((Fld1 * Fld2), "#,##0.0")

placing the format function as above in the query field
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top