loading picture into image control (report)

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
 
Back
Top