K
Kurt
I have a subform (in datasheet view) where users can enter
a submission type (e.g., "application", "amendment") for a
study. I would like to give them the option of linking the
word they just typed to a Word document (e.g., the actual
application), so in the future they can just click on the
word and the linked document will open.
I presume that I should use Application.FollowHyperlink,
but how I can set things up so the user can select the
path to the stored document? An ideal interface would be a
file tree that pops up and allows the user to "browse" to
the file and then select it.
Here's some code I've come up with, but I'm not sure if
I'm on the right track:
Private Sub Submission_Click()
Dim strAppName As String
strAppName = 'the path
(e.g., "C:\StudyA\Application.doc" identified by the user
would go here
Application.FollowHyperlink strAppName
End Sub
Thanks. Kurt
a submission type (e.g., "application", "amendment") for a
study. I would like to give them the option of linking the
word they just typed to a Word document (e.g., the actual
application), so in the future they can just click on the
word and the linked document will open.
I presume that I should use Application.FollowHyperlink,
but how I can set things up so the user can select the
path to the stored document? An ideal interface would be a
file tree that pops up and allows the user to "browse" to
the file and then select it.
Here's some code I've come up with, but I'm not sure if
I'm on the right track:
Private Sub Submission_Click()
Dim strAppName As String
strAppName = 'the path
(e.g., "C:\StudyA\Application.doc" identified by the user
would go here
Application.FollowHyperlink strAppName
End Sub
Thanks. Kurt