M_SOLAIMAN,
As you know, it is always helpful if you explain *why* you need to do this.
There might be a better way.
JeffCoachman
Main Topics
Browse All TopicsHi:
Can I declear a variable in vba as an ole object.
Because I have I picture in a table, and I need to move this picture from the table to this variable
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
A variable can only hold certain types of data (strings, numbers etc).
An OLE object is both an embedded/linked object AND the application wrapper associated with it.
For example, your image (.bmp) is actually an image file wrapped in the MS Paint application.
Access doesn't store images well and having them in your system will cause bloating.
You can either look into using Binary Long Objects (BLOBS) or, my prefered method, store the image in a shared network area and store the text hyperlink address for that image in your table.
Then you can use a simple piece of code to pull the image into a frame/image object on your form.
M_SOLAIMAN,
Now you see why most Access Developer do not store images in the Access database.
:-)
Go here:
http://www.lebans.com/olet
Downoald the file named:
ExtractInventoryOLE.zip
Extract the files to a folder.
Open the DB
Open the form called: ExtractInventoryAllOLEobje
This will convert each Object in the OLE field to it's respective file type.
JeffCoachman
Business Accounts
Answer for Membership
by: jimhornPosted on 2008-10-07 at 11:53:40ID: 22662348
afaik no, and even if you could, I would highly question whether you should.