If I can't do this from within Access VBA, can I do it from within VB 6?
So many questions!
Thanks,
Brian Lewis
You should be able to paste the image directly, e.g. by right clicking the
bound object control and choosing Paste... is that not working for you? If
it's not, then you might not have a suitable server application installed,
i.e. one that can convert the image to an OLE object.
If you want to do the paste programmatically, the code is
Me.bofImage.Action=acOLEPaste
(where bofImage is the name of the control)
If you save the image to a file, you can load it using:
Me.bofImage.OLETypeAllowed=acOLEEmbedded
Me.bofImage.SourceDoc="C:\MyPics\Pic1.bmp" 'or whatever
Me.bofImage.Action=acOLECreateEmbed
----
Simon Lewis
"Brian Lewis" <br...@jimbabweNOSPAM.com> wrote in message
news:3AC6D29F...@jimbabweNOSPAM.com...
I ended up saving each picture from the clipboard using VB 6, then doing a
second loop from within my Access form setting the SourceDoc, Class, and
Action=acOLDCreateEmbed on the object for each record. But that's only
because I hadn't found the acOLEPaste action--your way would have been much
faster, and I could have done it entirely within Access!
Thanks again,
Brian