Access/Word XP

E

Educo Gent

I use the following code for a button on a Access2002 form:

Private Sub Knop62_Click()

Dim strVollcommando As String
strVollcommando = "c:\program files\microsoft
office\office10\winword.exe c:\test\test.doc"
Call Shell(strVollcommando, 1)

End Sub


With Access2000, there is no problem (I know, the path for Word2000 is
....\office\... and not ..\office10\...). In Access2002, it doesn't work.
There seems to be a 'rights'-problem. The rights for the map 'c:\test' and
for the file 'test.doc' are: all rights to everyone. The file system is NTFS
on a WindowsXP PC.

Can anyone help me?

End Sub
 

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