Problem displaying linked Word document in report

T

Tom Developer

Hi!

I have paths for MS-Word documents stored in a table of a MS-Access 97
database. The contents of the Word documents must be displayed on a bound
form and on a bound report in the Access 97 application.

In the form, there is an Unbound Object Frame to display the Word object. In
the Form_Current event, I dynamically put the object into the Frame like this:
Me!OLEObject.SourceDoc = strPath
Me!OLEObject.Action = acOLECreateLink

(Where OLEObject is the name of the Unbound Object Frame.)
This works fine! But using the same code for the report (in the Report_Open
event) produces following error when executing the .Action line:
"The bound or unbound object frame you tried to edit doesn't contain an OLE
object."

Other approaches, e.g. using the Format event, also failed. Any ideas how a
linked Word document can be displayed in a report?

Thank you!
Tom
 

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