How to VB<->picture<->Access?

Posted on 2003-03-09
Medium Priority
Last Modified: 2010-05-03
what should i do if i want stores pictures like jpg or bmp in Access?

after, how do retrieve that pic with VB????
imgCook.Picture = LoadPicture(rs("imgPicture")) 'rs is a recordset
Question by:mkyong
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Expert Comment

ID: 8099340
it might be easier to store the images externally, and just have a string field in the database that contains the path to the file. not sure how to do it otherwise.

hope this helps

Author Comment

ID: 8099580
yup, working images externally is easier, i done already, use the hyperlink.

i saw some Access databse use the OLE object to insert the picture, but dun know how to link with vb.

So, is that not possible stores picture in Access?  

Accepted Solution

hj2k3 earned 225 total points
ID: 8099619
in theory you could use OLE, but that could pose problems because the OLE object is created depending on which application happens to be associated with opening picture formats, which may differ from machine to machine. i would not recommend this. i agree, just use hyperlink or string, both will work equally well from VB

Author Comment

ID: 8099813
Thanks hj2k3

Expert Comment

ID: 8099827
no problem :-)

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question