All you need to do is set the .Picture property of an image control.
Private Sub cmdLoadPic_Click()
Me.Image14.Picture = "C:\DB_Pictures\Dilbert_BugReward.bmp"
End Sub
To remove the picture, just set the .Picture proprty to an empty string like this:
Private Sub cmdUnload_Click()
Me.Image14.Picture = ""
End Sub
Regards,
Bill Mosca, Founder - MS_Access_Professionals
http://www.thatlldoit.com
Microsoft Office Access MVP
https://mvp.support.microsoft.com/profile=C4D9F5E7-BB03-4291-B816-64270730881E
My nothing-to-do-with-Access blog
http://wrmosca.wordpress.com
---In MS_Access_Professionals@yahoogroups.com, <kenaf42@yahoo.com> wrote :
ACCESS 2010
Please help, I need code for button on click event to embed a picture in FORM and code for second button to remove the embedded photo from The same form.
__._,_.___
Posted by: wrmosca@comcast.net
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (2) |
.
__,_._,___
Tidak ada komentar:
Posting Komentar