A
anna_717717
Hi all
I've created a report with an image control. Not all of the records have
associated images. I've used the following code to show the image:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
On Error Resume Next
Me!ImageFrame.Picture = Me!ImagePathName & Me!ImageFileName
End Sub
The path and file name are in the detail section.
The problem I have is that after the first image appears it then appears in
all the image controls until there is a new image file name even if there
is'nt a path or file name for the record. How can I stop this?
I've created a report with an image control. Not all of the records have
associated images. I've used the following code to show the image:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
On Error Resume Next
Me!ImageFrame.Picture = Me!ImagePathName & Me!ImageFileName
End Sub
The path and file name are in the detail section.
The problem I have is that after the first image appears it then appears in
all the image controls until there is a new image file name even if there
is'nt a path or file name for the record. How can I stop this?