I have a really simply code to show an image on a report, which works great. But some occasions the image may not be available and I want the report to simply ignore the absence of the picture and just continue to display without warning. Can someone point me in the right direction?
Just a few notes:
The path is static
Images will never exist until a CNumber is generated
They are always JPGs
This is what I have:
If possible, I'd like to just display "Image not present." when the image is not found.Code:Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) Image163.Picture = "C:\BitBeater\license\" & [cnumber] & "a.jpg" Image164.Picture = "C:\BitBeater\license\" & [cnumber] & "b.jpg" End Sub
Thank you.