Results 1 to 4 of 4

Thread: Bitmap in MS Access database

  1. #1

    Thread Starter
    New Member
    Join Date
    May 1999
    Location
    Catania, Italy
    Posts
    2

    Post

    I need add a bitmap into a MS Access database (ver. 7.0) but the vbBinary format is not valid.
    How do I add a picture into a record???

  2. #2
    New Member
    Join Date
    May 1999
    Location
    London, United Kingdom
    Posts
    4

    Post

    Had similar problem.

    Gave up!

    In the end elected to store a string of path and file name of image in table. Then used the LoadPicture("path\filename") method to set image.

  3. #3
    New Member
    Join Date
    Jun 1999
    Location
    Dubai
    Posts
    1

    Post

    I have done this storing picture into MS-Access, I hope this would be helpful to you.

    creat a OLE1 control into the form.

    and create a Command button.

    then include

    Private Sub Command1_Click()
    OLE1.InsertObjDlg
    End Sub

    Include Datacontrol to the form.

    Assume the name Data1

    and the Access database has a got field for BITMAP image named "PHOTO" which is of datatype OLE Object

    then in the properties of Datacontrol

    OLE1.Datasoure = Data1
    OLE1.Datafield = PHOTO



  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    You have to create field not with Binary but with OLE Object data type.

    Best regards,


    ------------------

    Serge

    [email protected]
    [email protected]
    If you have any questions about AOL programming, e-mail me


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