Visual Basic access Images

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dan Effets
    New Member
    • Oct 2011
    • 17

    Visual Basic access Images

    In Access I created a table with Images column
    Images/picture.bmp --
    Here the is problem when bound access to form all field work,
    except images..databas e is already imported to VB and I copied the image folder in the VB..
    Any Idea about this ? OLE way works , but I wanted a way to change picture if needed...
  • rekedtechie
    New Member
    • Feb 2012
    • 51

    #2
    Code:
    rs.Requery
    do until rs.eof
    if rs!name="your desired name of picture" then
    frmMain.PictureBox1.Picture = LoadPicture(app.path & "/" & rs!Pic_path)
    'ex: your app path
    'is in drive d:
    'folder prog1
    'this will be
    'D:/prog1/images/pic1.bmp
    exit sub
    else
    rs.movenext
    end if
    loop

    Comment

    Working...