How can I enable a user to click a thumbnail image or other object on a form that will open the bigger orginal image file in a separate browser window (or other photo viewer)?
Thanks Moniker, but how do I do this for each record? Each record has a unique thumbnail that is an embedded bmp in the form's ole object field. So when the form is viewed, the embedded image changes with each record. I looked at the properties of a static image on the form and found the hyperlink and subhyperlink properties, but that won't work since the thumbnail images are unique per record. Am I missing something?
The location should be the full path to the larger picture
the location will change with each record so put this in the on current if there is a picture and after update maybe for when a picture is added.
It should then open the default editor set for the file type
For each record, you'll have to have the full address to the full image. This can just be stored in an extra field in each record.
This depends on how you're doing thumbnails. If your thumbnail is already just a shrinked-down version of the full image, then you've already got the address. If your thumbnail is something different, then you'll have to explicitly supply each address.
I already had a text field that showed the path to the original picture that I wanted to display with an onClick event. I changed the property of the text field to Is Hyperlink = Yes. When that didn't work, I read the Help file on hyperlinks and discovered I needed to format the text string with asterisks as follows:
Click here for full image#\\Remington\projects\Current Projects\Fluor\Machine Guarding\2006_12_1\Original\IMG_0005.jpg##
Voila! Now when I click in the text box with the hyperlink, the original picture is displayed in a new IE window. A minor inconvenience is that I have to close the browser after each picture is opened as it keeps opening a new browser window for each picture.