Click to See Complete Forum and Search --> : OLE object


Kathy
January 12th, 2000, 09:09 AM
Hi,
I create Access table MyTable, there're 2 fields:
VendorName (Text)
VendorLogo (OLE Object)

From VB, I want to load the table data into textbox and picture control:
txtVendorName = rsVendor!VendorName
picVendorLogo = Loadpicture(rsVendor!VendorLogo)

----> The Loadpicture command fails, I guess I have to pass the
filename string of my bitmap, but I donn't know how? Any idea?

Thanks

Leo Koach
January 12th, 2000, 09:38 AM
I think you have to write the string to a temporary file, and loadpicture to the image control to display it.

I had same question came a cross before and a programmer wrote me that you have to write the string in a temp file and then call this file for LoadPicture event.

I don't know if this will ring a bell.

Leo