Application.FollowHyperlink - Trap Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AlastairHardwick
    New Member
    • Jul 2006
    • 3

    #1

    Application.FollowHyperlink - Trap Error

    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.Fol lowHyperLink(PD FPath) 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.Fol lowHyperlink (PCNotesDual)

    End Sub

    Oh, its Access2003 I'm using.

    Cheers

    Alastair
  • AlastairHardwick
    New Member
    • Jul 2006
    • 3

    #2
    oops sorry its a 94 error (Invalid Use of Null)

    Comment

    • AlastairHardwick
      New Member
      • Jul 2006
      • 3

      #3
      Fixed with

      On Error Resume Next

      Comment

      Working...