Results 1 to 2 of 2
2001-11-30, 16:19 #1
- Join Date
- Feb 2001
- Richland, Washington, USA
- Thanked 0 Times in 0 Posts
Shrink Detail Section when Image is Hidden (Access 2000 (9.0.4402 SR-1))
In a report I include an image object in the detail section along side the "real" data. I want to show this image only when a certain criterion for the record is met. To do this, I set the Visible property accordingly during the Detail_Format event. This all works fine.
The problem is that for some records, the height of the image is greater than the data I'm displaying. I'd like the detail section to shrink to the height of the data when the image is not visible. Currently, if the data does not extend beyond the bottom of the image (which may be hidden), the detail section's height is determined by the image, even when the image is not visible. Is there a way to have the detail section's height determined by only the data, when the image is not visible?
I have all the Can Shrink properties set to Yes (the image object doesn't have a Can Shrink property, though).
Thanks for any help.
2001-12-01, 03:49 #2
- Join Date
- Dec 2000
- Sacramento, California, USA
- Thanked 1 Time in 1 Post
Re: Shrink Detail Section when Image is Hidden (Access 2000 (9.0.4402 SR-1
The size of the section is determined by the controls it contains. Even with a control's visible property set to false, it takes up the same space as when it's visible. You would have to resize the image control itself, and I don't think you can do that at runtime.Charlotte