I have an Access 2003 database that allows a user to click an icon to open a Word document (if one exists) that defines the process associated with a displayed control. This Word narrative is maintained in a separate and independent enterprise repository that provides for archiving, versioning control, and user update permission restriction. The "current" version of this document can be accessed easily enough using standard HTTP protocol.
The hyperlink address is maintained as 2 separate data elements for each control in a table, and with very little manipulation a valid URL can be generated that points to the document. When initially setting this up, I had to manually determine the full correspondingURL path and document name. Works like a champ!
My issue is that I don't necessarily know if or when the owners of these narratives change the location in the repository system that effectively makes my table entries generate an invalid URL that no longer points to the proper location. I've written a short piece of code that loops through all the constructed URLS and helps to validate that the document still exists where it was expected to be... the main line being: Application.FollowHyperlink ThisURL, , True, False
This works fine in helping detect URLS that are no longer valid, but I really don't want to physically have to open 250+ documents only to ultimately close these. I am trying to determine if there is a means to validate (or invalidate) the URL with code without having to physically open (and subsequently close) the associated Word document.
Is there any Access functionality to do this? or am I likely stuck with the 10-12 minutes exercise that I've created and know it works... when I just ran it I see that 30 of 254 URLs that were once legit are no longer, meaning I need to research and possibly reset those 30 as appropriate. I know that the follow-up will always be a manual process that could take a while...just looking to speed up that 1st part of this maintenance task.
Thanks for any advise you can offer up.
The hyperlink address is maintained as 2 separate data elements for each control in a table, and with very little manipulation a valid URL can be generated that points to the document. When initially setting this up, I had to manually determine the full correspondingURL path and document name. Works like a champ!
My issue is that I don't necessarily know if or when the owners of these narratives change the location in the repository system that effectively makes my table entries generate an invalid URL that no longer points to the proper location. I've written a short piece of code that loops through all the constructed URLS and helps to validate that the document still exists where it was expected to be... the main line being: Application.FollowHyperlink ThisURL, , True, False
This works fine in helping detect URLS that are no longer valid, but I really don't want to physically have to open 250+ documents only to ultimately close these. I am trying to determine if there is a means to validate (or invalidate) the URL with code without having to physically open (and subsequently close) the associated Word document.
Is there any Access functionality to do this? or am I likely stuck with the 10-12 minutes exercise that I've created and know it works... when I just ran it I see that 30 of 254 URLs that were once legit are no longer, meaning I need to research and possibly reset those 30 as appropriate. I know that the follow-up will always be a manual process that could take a while...just looking to speed up that 1st part of this maintenance task.
Thanks for any advise you can offer up.