Link to home
Start Free TrialLog in
Avatar of SteveL13
SteveL13Flag for United States of America

asked on

How shrink detail section of report if format is Me.Detail.Height = 0

I have a detail section of a report that is set to visible = false in the on format event.  I have the section set to can shrink and the text boxes in the detail section set to can shrink.  There are no labels in the detail section, only text boxes.

But the section is not shrinking vertically.  

What am I doing wrong?
SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SteveL13

ASKER

The section and the controls are set to shrink and none of them overlap.  Unfortunately I can't share the d/b due to confidentiality issues.  But I did try MoveLayout = false, PrintSection = false, and NextRecord = true and it worked.

 
Sometimes you need to set GROW to YES also to make the feature work.
Very strange.
I agree but who are we to question the wisdom of MS?  I just automatically set both to Yes now so I don't even remember what prompted the problem initially although I think it was a subreport.