Here's the code fragment that i'm using:
myPath = FileD.SelectedItems(1)
Form_Samples.olePhot
LETypeAllowed = acOLELinked
Form_Samples.olePhoto.SourceDoc = myPath
Form_Samples.olePhoto.Action = acOLECreateLink
Works like a charm, BUT, after picture is added to the form, it opens MS Paint, giving you ability to edit the picture.
How do I prevent that from happening?
myPath = FileD.SelectedItems(1)
Form_Samples.olePhot
Form_Samples.olePhoto.SourceDoc = myPath
Form_Samples.olePhoto.Action = acOLECreateLink
Works like a charm, BUT, after picture is added to the form, it opens MS Paint, giving you ability to edit the picture.
How do I prevent that from happening?