Can't link to .jpg

DataMinerHome

Registered User.
Local time
Yesterday, 21:33
Joined
Jan 4, 2010
Messages
57
I am trying to link to a .jpg file using

myform.Controls("mycontrol").SourceDoc = "mypath"
myform.Controls("mycontrol").Action = acOLECreateLink

This works fine if mypath is a pdf or a bmp.
A few days ago it also worked fine if mypath was a jpg, but now suddenly for jpg files, I get "a problem occurred while accessing the ole object".

What could have changed?

Mycontrol is an unbound object frame with the following relevant properties:
OLEtype = linked
OLEclass = Microsoft Photo Editor 3.0 Photo
Class = MSPhotoEd.3

I can open the jpg files fine outside of access. When I double click on the files they open in microsoft photo editor version 3.0.2.3

Thanks for any help you can supply!
 

Users who are viewing this thread

Back
Top Bottom