OLE Icon

D

Dhonan

I am trying to show an icon on an Access form (e.g. the Word or Excel icon)
for an embedded object. Here is my code:
[Case Notes].Class = "Word.document" ' Set class name.
[Case Notes].OLETypeAllowed = acOLEEmbedded
[Case Notes].DisplayType = True
[Case Notes].SourceDoc = Application.CurrentProject.Path &
"\CaseNotesTemplate.doc"
[Case Notes].Action = acOLECreateEmbed
[Case Notes].SizeMode = acOLESizeZoom

This creates a square on my form that simply says "Word Document". However,
if I right click on the object and insert the object, the proper icon is
displayed.

Any ideas - thank!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top