#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Posts
    123
    Rep Power
    13

    Setting PictureBox image from Access Ole object field


    I have an Access database which one of it's tables contains an OLE object field that holds pictures.
    I'm trying to load these pictures (one at a time) to a PictureBox control.
    I've tried to do it through the Picture (IPictureDisp) property but I get a 'Type Mismatch' error.

    Help would be appreciated
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Posts
    464
    Rep Power
    14
    Hi,

    I think you should use the Bound Object control and set the Control Source to the field.

    Bye ...
    Last edited by derrickatdev; March 4th, 2003 at 06:47 AM.
    :-)
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Posts
    123
    Rep Power
    13
    I'm loading the control from an object, not directly from the database (in the object the picture is held in an Object variable).

IMN logo majestic logo threadwatch logo seochat tools logo