Launch file from OLE Field

S

Sanya Ibrahim

HI,
Is there any way to open a file I saved in an OLE field of Access 2007
using vba? For example, I saved a word document in the field using methods
as shown in http://support.microsoft.com/default.aspx/kb/210486. Now instead
of writing the file to disk, I want to open it in word using vba.
Can any one help?
Thanks in advance,
Sanya
 
S

Stuart McCall

Sanya Ibrahim said:
HI,
Is there any way to open a file I saved in an OLE field of Access 2007
using vba? For example, I saved a word document in the field using methods
as shown in http://support.microsoft.com/default.aspx/kb/210486. Now
instead
of writing the file to disk, I want to open it in word using vba.
Can any one help?
Thanks in advance,
Sanya

Write the file to disk as usual, then open it using:

Application.FollowHyperlink "C:\Temp\MyFilename.doc"

(substitute your actual path of course)
 

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