report image duplicates

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top