# Re: 请各位帅哥帮帮小妹好吗!!! (vb and access)

Posted by KissU on May 13, 1999 at 23:17:37:

In Reply to: 请各位帅哥帮帮小妹好吗!!! (vb and access) posted by Fanny on May 13, 1999 at 13:05:00:

: 同样的问题如读者 "小高"

: 如何 读取 image file (jpg or bmp) from access database

: 如何 储存 image file (jpg or bmp) to access database

: pls. comments

: Thanks very much

请揣摩下列程式, 希望对你会有帮助!!

Private Sub cmdLoadPicture_Click()
Dim m_PictureFileName as String
'PersonalImage 是一个Image物件
PersonalImage.DataSource="MyData.MDB"
PersonalImage.DataField="MyPicture"
m_PictureFileName="C:\Picture\myPic.bmp"
PersonalImage.Picture = LoadPicture(m_PictureFileName)
PersonalImage.Refresh
End Sub

Follow Ups: