Question : Change Image File Orientation using VBA

Hi Experts,

I have a MS Access Db that I am using to catalogue some photos, and I would like to be able to change the orientation of the photo from Landscape to Portrait at the click of a button without going out of the Db at all.

Currently there is an "image" control on a form, which changes its source file as the record changes.
I would like to add a "button" control that changes the orientation of the source file, and therefore the "image" control.

Thanks

C

Answer : Change Image File Orientation using VBA

The fliptest.mdb database link in the last post was created in 2007 and saved as 2003 i don't believe you said what version you were using. Also this happens very quickly on my computer i not sure if it will be so on yours.

Directions for testing
 Download or open the database
 Open the single form
 Left click or tab to the image in the field F3
Press f
The image will open in the editor flip then close the editor
If you need a different orientation then press f again it will move around in 90 deg intervals

also if your images are not OLE objects i would advise you to make them so if there is no risk of the database becomming larger then the 2g limit.

OLE linked images have other advantages such as when printing forms the correct image will print for each record.
Random Solutions  
 
programming4us programming4us