Hi all, 1st post so I hope that I don't screw this up!
I'm trying to get access to open a related pdf file when you click on a lable in a forum, but I can't seem to get it to locate the file correctly.
So far I can get this to work,
Private Sub Text0_Click()
Dim acrobatApp As String
acrobatApp = "C:\Documents and Settings\***\Desktop\TEST.txt"
'test
Shell "winword.exe TEST.txt"
End Sub
Which works great to open Word and then the file TEST.txt however, as soon as I try to open a file with is not stored in the same location as the database it all goes pear shapped and it won't locate the file.
My ultiamte aim is to get the shell comand to open a pdf which is stored in the acrobatApp string.
I'm not even sure that the shell comand is the right comand to be using!
Any thoughts?
I'm trying to get access to open a related pdf file when you click on a lable in a forum, but I can't seem to get it to locate the file correctly.
So far I can get this to work,
Private Sub Text0_Click()
Dim acrobatApp As String
acrobatApp = "C:\Documents and Settings\***\Desktop\TEST.txt"
'test
Shell "winword.exe TEST.txt"
End Sub
Which works great to open Word and then the file TEST.txt however, as soon as I try to open a file with is not stored in the same location as the database it all goes pear shapped and it won't locate the file.
My ultiamte aim is to get the shell comand to open a pdf which is stored in the acrobatApp string.
I'm not even sure that the shell comand is the right comand to be using!
Any thoughts?