Results 1 to 2 of 2

Thread: Image & OLE & Database

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    7

    Smile


    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.

  2. #2

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    7

    Help!!!


    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width