Embedding a document into an Object on a form

S

Sandy

Hi
I am trying to embed a file into an object frame on a
form. The file name is called strDoc and the code I am
using is:

If Not IsNull(strDoc) Then
Me.Docname.SourceDoc = strDoc
Me.Docname.Action = acOLECreateEmbed
End If

Line 3 of the code results in a run-time error '2753'. It
says that a problem occured while Access was communicating
with the OLE server.

I checked the error on the Microsoft Support Centre and it
said that this was a known problem. Does anyone know an
alternative method for embedding a file.

Thanks in advance
Sandy
 

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