
Originally Posted by
cyanidem
... set height of that "border" rectangle. But when I try to do it in On Format event it shows me height of textbox before it grows up...
As far as I know, the Height property is not available during Run Time. CanGrow is something different. So, if the height of an object after Cangrow does its song and dance is 600 TWIPS, you will not be able to assign that value to the Height property of another control during Run Time.
You would have to open the Report in Design View. So something like this ...
Code:
DoCmd.OpenReport "ReportName", acViewDesign, , , acHidden
Reports!Reportname.ControlName.Height = 600
DoCmd.Save acReport, "ReportName"
DoCmd.OpenReport "ReportName", acViewPreview, , "[MyIdField] = " & lngMyID
If you cannot apply CanGrow to an object, this is the alternative.