• Shrink Detail Section when Image is Hidden (Access 2000 (9.0.4402 SR-1))

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Shrink Detail Section when Image is Hidden (Access 2000 (9.0.4402 SR-1))

    Author
    Topic
    #363591

    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.

    Viewing 0 reply threads
    Author
    Replies
    • #555370

      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.

    Viewing 0 reply threads
    Reply To: Shrink Detail Section when Image is Hidden (Access 2000 (9.0.4402 SR-1))

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: