Report with photo

S

SF

Hi,

I have a create a report for printing ID. In the report I have an Image
control that would take the photopath from a photopath field.

I put the following code in the On Current event of the report

If IsNull(Me.Photo) Then
Me.Image5.Picture =
"S:\General\LAAR\Database\Photos\no_photo_available_large.png"
Else
Me.Image5.Picture = Me.Photo
End If

When I view the report, there is no photo display.

What is wrong with my code

SF
 
R

Rob Parker

I don't understand how you can have done that. A report (and any section of
a report) does not have an OnCurrent event.

The code itself seems OK; it should be in the OnFormat event of the section
of the report in which the image control is located.

HTH,

Rob
 

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