Add a photo link if the photo exists

  • Currently I am builiding a photo link based on some static information and field information,

    i.e. photoLink = "\\server\gearimages\" & partNo & "\" & machineNo & "\" & serialNo & ".jpg"

    Problem is if the photo does not exist for one reason or another then the link is useless.

    How do I confirm the photo exists and then add the link to the table?

    I was thinking some how in a script task or a for each loop?

    Thanks.

  • That's going to be slow if there are a lot of records, but a loop will work well enough.

    Have you thought about modifying the software which is displaying the link to perform the check at run time instead?


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply