honey2wood
Registered User.
- Local time
- Today, 01:40
- Joined
- Feb 16, 2010
- Messages
- 43
Hi,
I cant seem to find anything that answers my question on the forum but I expect someone knows where I should have looked but here goes,
I have a database that looks up files in a certain folder then as hyperlinks to that file and opens it.
I can do that but the files I am looking at have different extensions. Mainly .doc, .docx and .pdf
At the moment the code just looks for pdf but is there a way to make it open any of them.
This is what I have now
Private Sub Hyperlink_Click()
Dim QuoteNo As String
QuoteNo = "\\2003SERVER\Company\Quality\Defective Goods\DGRs\" & "DGR-" & Me.DGR_No & ".pdf"
On Error GoTo Err_CannotOpenEnquiry
Application.FollowHyperlink QuoteNo
Exit_Err_CannotOpenEnquiry:
Exit Sub
Err_CannotOpenEnquiry:
MsgBox Err.Description
Resume Exit_Err_CannotOpenEnquiry
End Sub
What I need is an equivelent to * on Excel.
Does anyone have any thoughts on this please.
Graham
I cant seem to find anything that answers my question on the forum but I expect someone knows where I should have looked but here goes,
I have a database that looks up files in a certain folder then as hyperlinks to that file and opens it.
I can do that but the files I am looking at have different extensions. Mainly .doc, .docx and .pdf
At the moment the code just looks for pdf but is there a way to make it open any of them.
This is what I have now
Private Sub Hyperlink_Click()
Dim QuoteNo As String
QuoteNo = "\\2003SERVER\Company\Quality\Defective Goods\DGRs\" & "DGR-" & Me.DGR_No & ".pdf"
On Error GoTo Err_CannotOpenEnquiry
Application.FollowHyperlink QuoteNo
Exit_Err_CannotOpenEnquiry:
Exit Sub
Err_CannotOpenEnquiry:
MsgBox Err.Description
Resume Exit_Err_CannotOpenEnquiry
End Sub
What I need is an equivelent to * on Excel.
Does anyone have any thoughts on this please.
Graham