The records in the maintable of my MS Access 2010 database include an Attachment field which links to a ‘.jpg’ image. These imagesare all a fixed width but variable in length. In the Report Design I have animage frame set to this width and about 2 cm high. If the original image heightis greater than this frame height, then Access reduces the image in size to fit withinthe frame. I would like the frame to extend in height automatically so that theimages are shown full size. (This would be a different amount for eachrecord in the report – a bit similar to the ‘Can Grow’ property on a Textfield.) Presumably I need a bit of VBA code that sets, for each record, the imageframe height to the associated image height.
What Event property should be set to automatically actionthe code? What code would be needed andwhat would be the best way to call it? I am new to VBA, so please be patient! Thanks.