I have a hyperlink field on my form. All of the files to which the hyperlinks point are located in a specific directory on our network. I would like the user to hit a command button (I.e. Link Report) that will open our designated directory directly, rather than have the users muddle their way through the network to find it.
My thought process, because it's the only way I know how, is something like the following:
Private Sub AddReport_Click()
DoCmd.GoToControl "Report"
SendKeys "%(I)I%(F){TAB 7}R {ENTER}", True
End Sub
Unfortunately, this gets me just shy of the directory I want and from what I've read here, using sendkeys is not a great way to go about things. I looked in the help files at the dir() command but don't think that will help. Any suggestions?
- Matt
My thought process, because it's the only way I know how, is something like the following:
Private Sub AddReport_Click()
DoCmd.GoToControl "Report"
SendKeys "%(I)I%(F){TAB 7}R {ENTER}", True
End Sub
Unfortunately, this gets me just shy of the directory I want and from what I've read here, using sendkeys is not a great way to go about things. I looked in the help files at the dir() command but don't think that will help. Any suggestions?
- Matt