By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,650 Members | 1,996 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,650 IT Pros & Developers. It's quick & easy.

Application.FollowHyperlink - Trap Error

P: 3
Hi,

Wonder if you can help? I have an Image Management Database which holds various information relating to Ghost Images and Testing.

I am using a textbox with a hyperlink to display the path to a PDF file within a networked filesystem.

To open the PDF I have used the Application.FollowHyperLink(PDFPath) property to enable users to view a PDF by clicking on a "View" command Button.

I need to be able to trap the error if some dumb user clicks on the View button without a filepath being inserted into the text box.

At present I get a 96 error "Invalid Use of Null".

Private Sub Command12_Click()

Application.FollowHyperlink (PCNotesDual)

End Sub

Oh, its Access2003 I'm using.

Cheers

Alastair
Jul 21 '06 #1
Share this Question
Share on Google+
2 Replies


P: 3
oops sorry its a 94 error (Invalid Use of Null)
Jul 21 '06 #2

P: 3
Fixed with

On Error Resume Next
Jul 21 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.