?
Solved

Displaying picture from Access Database at run time.

Posted on 1998-10-04
3
Medium Priority
?
174 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
[X]
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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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
Course of the Month8 days, 10 hours left to enroll

765 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