Save .BMP to Access database

By | 2002-06-01

This code will save and retrieve bitmap graphic files from an OLE Object field inan Access 97 database. The same principle applies to earlier versions of Access/VB, but I haven’t tested them. You’ll need to use the appropriate DAO library. Let me know if you find a way to save other graphic formats.

Original Author: Craig Boland

Inputs

A bit map graphic (selected by dialog box).

Assumptions

This is an Access 97 database, so you’ll need the library, DAO 3.51 or later.

Returns

An IPictureDisp object to be loaded into a PictureBox.

Side Effects

Only works with bitmaps.

Attachments

FileUploadedSize
CODE_UPLOAD22101291999.zip9/3/2020 3:45:00 PM109967
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.