Microsoft KB Archive/98794

{|
 * width="100%"|

ACC1x: Invalid Results in Subreport When CanGrow = Yes

 * }

Q98794

-

The information in this article applies to:


 * Microsoft Access 1.0

-

SYMPTOMS
If a control in a subreport uses an expression or aggregate function and its CanGrow property is set to Yes, Microsoft Access does not calculate the value of the field correctly.

For example, assume your database contains a table named Test that has a text field called TestColumn containing the following values:

  TestColumn --  Mickey Donald

If you create a report with a single text box (Field1) containing the expression

  =IIf(IsNull([TestColumn]),&quot;N/A&quot;,[TestColumn])

and you set the CanGrow property for Field1 to Yes and then embed that report as a subreport, you get the following incorrect results:

  Donald Donald

If the calculated subreport field contains an aggregate function, instead of a text-based expression as above, the subreport displays incorrect numeric values.

RESOLUTION
Make sure that the CanGrow property of subreport fields that use expressions or calculations is set to No.

STATUS
Microsoft has confirmed this to be a problem in Microsoft Access version 1.0. This problem no longer occurs in Microsoft Access version 1.1.

Keywords : kbusage

Issue type : kbbug

Technology :