P
Pam
Hi,
I have posted a couple of times in the DAP group, but have received no help
to question - there is also a lot of ads and testing posts there. I'm
hoping someone here can help. I need a command button set up on the DAP
like in a form where you have an "if" statement to open a pdf file located
on server that matches file name in text box. This is code I use on my
regular search form, but with DAP being HTML I realize it won't work. This
is the last step I need to complete search page.
Any help is greatly appreciated.
Pam
Private Sub Command21_Click()
Dim strPath As String
strPath = "\\databases\PDF\" & Me.[ITEM NUMBER] & ".pdf"
If Dir(strPath) = "" Then
MsgBox "There is no pdf for this brochure."
Else
Application.FollowHyperlink strPath
End If
End Sub
I have posted a couple of times in the DAP group, but have received no help
to question - there is also a lot of ads and testing posts there. I'm
hoping someone here can help. I need a command button set up on the DAP
like in a form where you have an "if" statement to open a pdf file located
on server that matches file name in text box. This is code I use on my
regular search form, but with DAP being HTML I realize it won't work. This
is the last step I need to complete search page.
Any help is greatly appreciated.
Pam
Private Sub Command21_Click()
Dim strPath As String
strPath = "\\databases\PDF\" & Me.[ITEM NUMBER] & ".pdf"
If Dir(strPath) = "" Then
MsgBox "There is no pdf for this brochure."
Else
Application.FollowHyperlink strPath
End If
End Sub