G
Guest
I currently have a report that displays images using the following code:
Private Sub Detail_Format (Cancel As Integer, FormatCount As Integer)
Me![Image1].Picture = Me![FILE PATH]
End Sub
The code works fine, but i do not have images for all of the items on the
report. So when Access tries to format one of these non-existent images, it
produces the following error message:
Run-time error '2220':
Micorsoft Access can't open the file 'C:\123.jpg'.
I would like to have Access display only the images i have and
disregard/skip the ones i don't. i'm sure there some sort of "Error" code i
can use but i'm not really sure.
I would appreciate any help. Thank you.
Private Sub Detail_Format (Cancel As Integer, FormatCount As Integer)
Me![Image1].Picture = Me![FILE PATH]
End Sub
The code works fine, but i do not have images for all of the items on the
report. So when Access tries to format one of these non-existent images, it
produces the following error message:
Run-time error '2220':
Micorsoft Access can't open the file 'C:\123.jpg'.
I would like to have Access display only the images i have and
disregard/skip the ones i don't. i'm sure there some sort of "Error" code i
can use but i'm not really sure.
I would appreciate any help. Thank you.