Load OLE Bitmap From access Databse into a VB6 application

Posted on 2003-03-27
Medium Priority
Last Modified: 2008-03-17
Ok, I'm using a ADOdc object on my form to link to a access database, I in one of my tables there is a field that contains a OLE Bitmap. How can i link it to an picture/image object on my form?
Question by:MICS
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
  • 2

Accepted Solution

YaakovS earned 200 total points
ID: 8222314
Ok in VB The OLE control can display such a field but can not be bound to the ADO control, instead the OLE control must be bound to the intrinsic Data control. Basically put a Data control your form and set its DataBaseName property to the name of your database and its RecordSource property to the table with the pictures. Then put an OLE object on your form and set its DataSource property to the name of your Data Control and its dataField property to the name of the table with the picture. Then write some code to synchronize your Data control to your ADO control. Hope this helps.    

Author Comment

ID: 8222388
I had thought about that, But i find it to messy.

If i was to take the ado object using the following code, it woudl return the bitmap image. Is there anyway to then use what it returns (a bitmap file) and assign it to a picturebox, imagebox, or draw command?


Author Comment

ID: 8225065
What is the differenec between the 'Data' object in VB and the 'ADOdc' object???

Expert Comment

ID: 8531475
This old question (QID 20565664) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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

764 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