Brian,
With Pic as the name of bound OLE control on the
form and Path as the name of control holding full path of image file, the
following set of statements in form's code module should
suffice.
Pic.SourceDoc =
Path
Pic.Action = ""> Note - If linked image is desired, use acOLECreateLink instead of acOLECreateEmbed As the path for image file is already available
with you, the preferred alternative would be to eliminate the OLE field from
your table altogether, in order to prevent unnecessary bloating of your
db.
Instead, you can place an image control in report's
detail section and assign the file path to its picture property via print event
(of detail section). DO NOT USE THE FORMAT EVENT FOR THIS PURPOSE.
Best wishes,
A.D.Tejpal
ps: Just for academic interest, your existing SendKeys commands should work
successfully, if lower-case key names are used (e.g. f, e, v instead
of F, E, V). But you should no longer be needing any of this.
Please zip all files prior to uploading to Files section. YAHOO! GROUPS LINKS
|
- [AccessDevelopers] Insert Object from file with code. Brian Stenglein
- Re: [AccessDevelopers] Insert Object from file with c... A.D.Tejpal
- [AccessDevelopers] Re: Insert Object from file wi... Brian Stenglein