Hi Bob,
I have just used you code exactlly and only changed the paths and it all works :). Thanks a lot for your help. There is one thing I had to change that was the lines
With rst
.AddNew
!FileHyperlink = strFileHyperLink
.Update
blnRecordAdded = True
End With
have to go in the if statement where it checks if its a pdf file, so that it doesn't repeat the same file when it saves it to a record. Everything else works perfect and it lets me open the hyperlink in the table afterwards so it must be a security issue for you.
THanks once again,
Marcin
|