Search code examples
ms-accesshyperlink

Check hyperlink fields on MS-Access if broken without click the links


Is there a way to check an Access Table with many hyperlinks fields and contains hundreds of records if any of these hyperlinks are not working without clicking each link?
Note: All hyperlinks are referring to files & folders.

enter image description here

Access Example


Solution

  • You can use my function DownloadFile found at VBA.PictureUrl in an expression in a query, as the function returns 0 (zero) if the URL is live.

    IsBroken: CBool(DownloadFile(Nz([YourUrlField]), "C:\Test\Delete.tmp"))
    

    When done, delete C:\Test\Delete.tmp.