Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attaching Digital Picture to Report 1

Status
Not open for further replies.

tpearo

Technical User
Apr 24, 2000
124
US
I,m creating an Access database for my laboratory.
I provide reports to my customers from our analysis and some digital pictures are part of the reports. Is there a way that I can write a report and attach the picture or place the picture in the report. This is a dynamic database and each report would have a different picture. How do I select the proper file or picture?
 
Just insert a picture on the report. Then in the OnFormat event of the details section of the report, set the Picture property of the image to the file you want. For example:

Image1.Picture = "\\path\YourPicture.jpg
 
Of course, you'll have to either store the picture path in your database OR name each picture with an id that the program can recognize (like P1758.jpg where 1758 is the key to your customer table).

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top