Displaying picture from Access Database at run time.

How do I display the picture at run time when my
rs.Fields(N) contains a link to a BitMap Image?
   
DIMAAsked:
Who is Participating?
 
mskannanConnect With a Mentor Commented:
Try this solution and it should solve your problem.

Create a OLE control(you have to choose from toolbox) and choose Bitmap image and link the Photo field in the Employee table of Northwind database(Use datacontrol for example)

Now run this one

regards,
mskannan.
0
 
TheAnswerManCommented:
If it is the Path to the file..
Just put

Picture1.picture = Loadpicture(rs.Fields(N))

0
 
DIMAAuthor Commented:
The field in recorset contains the object not the path to the bit
map image. Take the NorthWind Database and look in Employees, the field Photo does not contain Path. What is the short and efficient way of displaying the image at runtime.

Thaks.
     
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.