Solved

Displaying picture from Access Database at run time.

Posted on 1998-10-04
3
170 Views
Last Modified: 2010-08-05
How do I display the picture at run time when my
rs.Fields(N) contains a link to a BitMap Image?
   
0
Comment
Question by:DIMA
3 Comments
 
LVL 3

Expert Comment

by:TheAnswerMan
ID: 1438107
If it is the Path to the file..
Just put

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

0
 

Author Comment

by:DIMA
ID: 1438108
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
 

Accepted Solution

by:
mskannan earned 0 total points
ID: 1438109
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now