Limit Decimal Places in Function

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have a report that shows (in part) the average length of time it took
participants to graduate from a program in both days and months. In the
query I have set both of the Average fields (days and months) to "Format:
Fixed" and "Decimal Places: 1". The problem is, however, that when I
generate the report, I have the months text box Control Source set to:

=[AvgOfMonths] & " Months"

[AvgOfMonths] is obviously the number, and then " Months" is the text I
want to appear afterwards. The problem is, I can't get the numerical part to
limit itself to one decimal place. I've set the months text box in the
Report to "Format: Fixed" and "Decimal Places: 1" as well, but that doesn't
seem to work (I assume due to the text that follows it in the control source.
Any ideas on how to limit the number of decimal places??
.



Relevant Pages

  • Re: For Marshall Barton
    ... Control Source: IncType ... Second Subreport: ... As they appear in the Detail Section of the Main Report: ... function in the report footer will work ok, ...
    (microsoft.public.access.reports)
  • Re: For Marshall Barton
    ... However, when I ran the report, it kept ... After fixing the IIf problem, ... Control Source: ABegBal ... "The LEVEL clause includes a reserved word or argument that is misspelled or ...
    (microsoft.public.access.reports)
  • Re: For Marshall Barton
    ... additional subreports into the same detail section of the main report. ... Control Source: ABegBal ... named the subreport control to make it look like a text box ... "The LEVEL clause includes a reserved word or argument that is misspelled or ...
    (microsoft.public.access.reports)
  • Re: For Marshall Barton
    ... Copy/Paste) did you put int their control source property? ... many records the main report's record source query returns ... function in the report footer will work ok, ... the subreport CONTROL on the main report. ...
    (microsoft.public.access.reports)
  • Re: For Marshall Barton
    ... the ending balance. ... a Main Report: rpt_AFinancialStmt. ... 2nd Field is first SubReport: ... as the Control Source in an unbound text box. ...
    (microsoft.public.access.reports)