ACC1x: Invalid Results in Subreport When CanGrow = Yes

ID: 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]),"N/A",[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 RptSub
Version : 1.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: March 23, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.