R
richaluft
Hi:
Having strange problem with erratic behavior of field format on a
report/subreport, which I hope someone can solve. (Using Ac2003)
On the subreport Detail, I have a field "Charges", Where Format=
Fixed, Decimal Places = 2, and ControlSource =
=Replace([ChargesApproved],"."," ").
On the subreport Footer, I have a field "SumCharges", whose
Format=Currency, Decimal places = 2, and
ControlSource==DSum("[ChargesApproved]","TopN") (where TopN is the
underlying query for the subreport).
Then, in the Report Detail section, there is a field "TotalCharges",
where Format = Fixed, Decimal places = 2, and
controlsource =Replace([INVOICE1500subform].[Report]!
[Sumcharges],"."," ").
If the report is opened using command DoCmd.OpenReport "Invoice
1500-1", then all fields are formatted correctly, and TotalCharges
might show a correct result as 2800 00.
However, I sometimes use the following command sequence:
DoCmd.OpenReport "RptSelfPayNon-Par", openargs:=""
DoCmd.OpenReport "RptSelfPayNon-Par", openargs:="Copy"
DoCmd.OpenReport "Invoice 1500-1"
When I print using this sequence, the third line prints these fields
improperly as , for example, "2800", which amounts to $28.00 on the
invoice instead of $2800.00.
Can someone provide a remedy for this erratic performance?
TIA, Richard
Having strange problem with erratic behavior of field format on a
report/subreport, which I hope someone can solve. (Using Ac2003)
On the subreport Detail, I have a field "Charges", Where Format=
Fixed, Decimal Places = 2, and ControlSource =
=Replace([ChargesApproved],"."," ").
On the subreport Footer, I have a field "SumCharges", whose
Format=Currency, Decimal places = 2, and
ControlSource==DSum("[ChargesApproved]","TopN") (where TopN is the
underlying query for the subreport).
Then, in the Report Detail section, there is a field "TotalCharges",
where Format = Fixed, Decimal places = 2, and
controlsource =Replace([INVOICE1500subform].[Report]!
[Sumcharges],"."," ").
If the report is opened using command DoCmd.OpenReport "Invoice
1500-1", then all fields are formatted correctly, and TotalCharges
might show a correct result as 2800 00.
However, I sometimes use the following command sequence:
DoCmd.OpenReport "RptSelfPayNon-Par", openargs:=""
DoCmd.OpenReport "RptSelfPayNon-Par", openargs:="Copy"
DoCmd.OpenReport "Invoice 1500-1"
When I print using this sequence, the third line prints these fields
improperly as , for example, "2800", which amounts to $28.00 on the
invoice instead of $2800.00.
Can someone provide a remedy for this erratic performance?
TIA, Richard