So here's my issue... I have a database of properties. Each of these properties has several pdf documents that are associated with each property. In one table I have all the properties and information. In the second table I have all the hyperlinks to the documents.
What I would like to do is have a button on the form that would open the hyperlink for the current record. I've been having issues with this and I get an error message that says either "Procedure declaration does not match description of event or procedure having the same name," or "Object doesn't support this property or method." The defining difference between the error message is whether I place the code under a private sub or a function. What am I missing?
Here's what I have:
I know the code is simple (and probably not complete), but it's just hanging me up.
What I would like to do is have a button on the form that would open the hyperlink for the current record. I've been having issues with this and I get an error message that says either "Procedure declaration does not match description of event or procedure having the same name," or "Object doesn't support this property or method." The defining difference between the error message is whether I place the code under a private sub or a function. What am I missing?
Here's what I have:
Code:
Private Sub propSurvey_Click()
Application.FollowHyperlink [Me.propSurvey]
End Sub
I know the code is simple (and probably not complete), but it's just hanging me up.