PDA

Click to See Complete Forum and Search --> : Image & OLE & Database


tulip
Nov 2nd, 2000, 07:23 AM
It is very easy to put a picture for an Image from a file, but I do not know how to put it from an OLE value of Database record? such as:

Image1.Picture = LoadPicture("C:\MyDocuments\MyPict.bmp")
it runs ok, but:

Image1.Picture = LoadPicture(recordset1.Field("Picture"))
problem emerges.

tulip
Nov 4th, 2000, 06:23 AM
I have put a picture in a Field "fldPicture" of Table "Mytable" (database: "MyData").

Now, I want to set the picture to an Image, so, how can I do it by code?

If we set a picture to an Image from a file, we can do:
Image.Picture=LoadPicture("C:\windows\MyPicture.bmp")

Any reply will be highly appreciated!



------------------------------
VB6.0 ACCESS2000 JET 4.0