[Last Call] Learn how to a build a cloud-first strategyRegister Now


acCmdInsertObject - bmp files display picture, why don't jpg and gif?

Posted on 2004-11-17
Medium Priority
Last Modified: 2008-01-09
I have embedded a file using acCmdInsertObject but all I see in the control is the name of the file if it is a jpg or gif. If it is a bmp or ppt(ie from the list of applications shown in the dialog box) it shows the picture.

How do I get jpg and gif to display as pictures?

I am using Access 2000, Windows XP home.
Question by:ltdrisk
LVL 34

Expert Comment

ID: 12610174

Author Comment

ID: 12610904
Thanks but it didn't work.

Your tip showed me a form that imports jpg and gifs into an image control but this picture does not get saved in a table(ie when you close the form the picture goes away. next time you open the form you have to import the pic again.
I have used Excel.Application.GetOpenFileName to browse to a file, so that part is fine.
My problem now is to get the jpg to display as a picture in the Bound OLEFrame. All I see is the name of the file. If I double click it it opens the fax viewer.

It seems the OLEFrame will not display the picture if it is a jpg or gif. I think your tip has some code to convert but it is complicated. Is there not an easier way?
LVL 51

Expert Comment

by:Steve Bink
ID: 14155692
I think this is what you are looking for:


Accepted Solution

PAQ_Man earned 0 total points
ID: 14187157
PAQed with points refunded (50)

Community Support Moderator

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

830 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