loading picture into image control (report)

G

Guest

I added this code to my report ("report page" event)

Image.Picture = "C:\database\photos\" & picName & ".jpg"

where pic name changes for each record on the report, but when I run it the
first record has not picture and the second one has the first record picture.

I'm assuming the code is in the wrong event...where should I put the code to
load the picture?
 
L

Larry Linson

Leod said:
I added this code to my report ("report page" event)

Image.Picture = "C:\database\photos\" & picName & ".jpg"

where pic name changes for each record on the report, but when I run it the
first record has not picture and the second one has the first record picture.

I'm assuming the code is in the wrong event...where should I put the code to
load the picture?

Use the Print event of the Section in which the Image Control is located.

Did I not see your question in another newsgroup, too? If you feel compelled
to ask in multiple newsgroups, please crosspost by listing all the
newsgroups in the Newsgroups line in the header. Posting the identical
question separately in many newsgroups is inefficient, wastes the time of
people answering, and is considered impolite, at best.

Larry Linson
Microsoft Access MVP
 

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