View Full Version : Opening word doc with Access runtime version


aqif
11-08-2001, 04:33 PM
Hi http://www.access-programmers.co.uk/ubb/smile.gif

I am opening a word document from a button on the form. The code for opening the document is:

Private Sub CmdHelp_Click()
Dim RetVal
RetVal = Shell("Winword""C:\Help manual.doc""", vbMinimizedFocus)
End Sub

When I run Access is its normal or standard edition, the button opens the document with no problem. But when I use the Access runtime version to run the database the button fails to open the file n gives error No 53 ans says that File not find. Is there any other alternate code to open the specified word document.

Cheers!
Aqif

Fornatian
11-09-2001, 08:06 AM
Application.FollowHyperlink "FileToLinkTo"

irishtyke
10-18-2007, 03:19 PM
Hi Aqif,

Did you ever solve this problem?

I have the same problem with Word & Excel files when using Access 2007 Runtime.