473,396 Members | 2,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Object Question

I've got a table with an entry type as "OLE Object" in Access 2003. In the
form that the table is linked to I want to insert an image (BMP) for each
record. However, when I attempt to do so the file is inserted and the
filename (image.bmp) is inserted in the box with it taking up about half of
the box. I didn't have this problem in Access XP. I've tried embedding and
linking the file, but this always happens. Can anyone offer any guidance?

TIA
Aug 19 '06 #1
2 2366
The relevant Microsoft KB article is here:
http://support.microsoft.com/default...2508&Product=a

Images that are stored in OLE object fields do not appear correctly
View products that this article applies to.
Article ID : 832508
Last Review : May 3, 2005
Revision : 2.0
This article applies only to a Microsoft Access database (.mdb).
Novice: Requires knowledge of the user interface on single-user computers.
On This Page
SYMPTOMS
CAUSE
WORKAROUND
Install Microsoft Photo Editor
Display the images from a folder
MORE INFORMATION
Steps to reproduce the behavior
REFERENCES
SYMPTOMS
When you store an image file in a table as an OLE object in Microsoft Office
Access 2003, and then you try to display the stored image by embedding or by
linking the image file in a form, a report, or a data access page, you may
not be able to view the image. Additionally, you may notice that the file
icon displays the file name instead of the image itself.
Back to the top
CAUSE
This problem occurs because Access 2003 cannot find the OLE Server that can
correctly interpret the OLE object header information.
Back to the top
WORKAROUND
To work around this problem, use one of the following methods:
Back to the top
Install Microsoft Photo Editor
You can install Photo Editor from the Microsoft Office XP CD-ROM. To do
this, follow these steps: 1. Insert the Office XP CD-ROM in your CD-ROM
drive or in your DVD-ROM drive.
2. If the Office XP Setup program does not start automatically, follow
these steps: a. Click Start, and then click Run.
b. In the Run dialog box, type the following command in the
Open box:
<CD Drive>:\Setup.exe
c. Click OK.
3. Follow the instructions in the Office XP Setup Wizard.
Make sure that you select the customized installation.
4. When you reach the Selecting Features step, set each node of the
Setup tree to Not Available.
5. Under Features to install, expand Office Tools.
6. Click Microsoft Photo Editor, and then click Run from My Computer.
7. Click Install Now.
8. Click OK when the Office XP Setup program is completed
successfully.
Back to the top
Display the images from a folder
Instead of storing the images inside the table as OLE objects, you can store
the image file paths and the image names in the table and then display the
images by using an image control. When you use an image control inside a
form or a report, Access does not require the OLE Server to display the
images in the image control. For more information, click the following
article number to view the article in the Microsoft Knowledge Base:
285820 (http://support.microsoft.com/kb/285820/) How to display images from
a folder in a form, a report, or a data access page
Back to the top
MORE INFORMATION
When you install Microsoft Office 2003, the Setup program removes all the
standard components from Office XP (such as Photo Editor) that you
previously had installed on your computer. As a result, Access 2003 cannot
find the OLE Server that can display an image file (such as a .jpg file or a
..gif file), and you cannot view the embedded graphic files or the linked
graphic files.
Back to the top
Steps to reproduce the behavior
1. Start Access 2003.
2. Open the Northwind.mdb sample database.
3. In the Database window, click Tables under the Objects section.
4. In the right pane, double-click Create table in Design view.
5. Create a table that is named TestImage with the following details:
Table: TestImage
Field Name: FldImage
Data Type: OLE Object
6. Open the TestImage table in datasheet view.
7. In datasheet view, right-click the FldImage field, and then click
Insert Object.
8. Select Create from File, and then click Browse.
9. Locate the .jpg image file. Select the .jpg image file, and then
click OK.
10. Click OK.
11. On the File menu, click Close.
12. In the Database window, click Forms under the Objects section.
13. In the right pane, double-click Create form by using wizard.
14. In Form Wizard, select Table: TestImage from the Table/Queries
drop-down list.
15. Click >to move all fields from the Available Fields list to the
Selected Fields list.
16. Click Finish.
17. If the form is not already open in form view, open the form in
form view.
Notice that when you view the data in the table in datasheet view, the
value of the OLE object is shown as a package image or as a bitmap image.
Additionally, when you view the form that displays the OLE object in form
view, the embedded image file does not appear. However, you can see the file
icon for the image file that is embedded in the form.
Back to the top
REFERENCES
For more information, click the following article number to view the article
in the Microsoft Knowledge Base:
817095 (http://support.microsoft.com/kb/817095/) Microsoft Photo Editor is
removed when you install Office 2003
Back to the top
---------------------------------------------------------------------------*-----
APPLIES TO
. Microsoft Office Access 2003

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Crimson*" <us**@isp.comwrote in message
news:4r******************@newssvr25.news.prodigy.n et...
I've got a table with an entry type as "OLE Object" in Access 2003. In
the form that the table is linked to I want to insert an image (BMP) for
each record. However, when I attempt to do so the file is inserted and
the filename (image.bmp) is inserted in the box with it taking up about
half of the box. I didn't have this problem in Access XP. I've tried
embedding and linking the file, but this always happens. Can anyone offer
any guidance?

TIA


Aug 20 '06 #2
Yeah, I ran across that article before I posted, but unfortunately this PC
never had Office XP and I don't have a disc for it anymore and I was really
hoping someone had a less involved way than the second workaround. Thanks
for the response, though.
Aug 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: sunaina | last post by:
This is the first program I am writing using PHP and Mysql. I am creating a game where user thinks of an object and my program guesses the object while asking series of yes/no questions. All a...
6
by: Chris S. | last post by:
I'm trying to make a graphical editor and browser for Pickled files. One aspect I'm not sure about is how to detect multiple references to the same data. For instance, say I had the Pickled...
4
by: Tom | last post by:
I want to open a recordset object on an .asp page. When I open the recordset I would like to use a stored procedure that expects a parameter to be passed for the stored procedure. I will then use...
4
by: Mark D. Anderson | last post by:
About a month ago Richard Cornford did an interesting analysis of a memory leak in jscript (internet explorer) when there are "circular" references between DOM objects and (real) jscript objects:...
6
by: Luke | last post by:
Here is my emails to Danny Goodman (but probably he is very busy so he didn't answered it). First email(simple): Subject: JavaScript Arrays " We all know the array can act like HashMap, but is...
100
by: E. Robert Tisdale | last post by:
What is an object? Where did this term come from? Does it have any relation to the objects in "object oriented programming"?
6
by: Tom | last post by:
I have a problem, to which I have been unable to find a solution for days now, after checking numerous references (both in books and online). Perhaps someone here can help. Here's my problem: ...
7
by: Martin Robins | last post by:
I am currently looking to be able to read information from Active Directory into a data warehouse using a C# solution. I have been able to access the active directory, and I have been able to return...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
15
by: Hamed | last post by:
Have I posted the message to wrong newsgroup? Or Does the question is so much strage? Would someone please kindly direct me to a true newsgroup or resource? Best Regards Hamed
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.