OLE object on Report not working

L

Lee

Hi everyone,
Can you tell me what I'm doing wrong here?
I've got a Report with an unbound Word 97 object on it.
I've also got a Form that has the same Word object on it
to allow the users to edit the contents of the Word
object. When they click on a Print Preview button on the
form, the report should then be opened with their text
included. However, the changes made to the document via
the form are not immediately reflected in the report so I
thought I'd add the following code to the Open Event of
the Report:

oleBody.Action = acOLEUpdate

I get an error message saying that the Unbound Object
Frame doesn't contain an object (?) I've tried linking
the document and embedding it but still no joy. What am
I doing wrong here?

Thanks for any help you can give.

Regards,

Lee
 
Top