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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple images on a report

Status
Not open for further replies.

RonMcIntire

Technical User
Oct 12, 2002
166
US
I am using MS Access 2007, Windows 8.1.

I input the FilePath to 11 Chapter Officer images and names on a form using a table source. That Works oK.

My Table:
Org (Organization number to re-org the officers if needed).
ChapterOffice (President, VP, Membership, etc)
OfficerName (Tom, Bill, Mike, Etc)
FilePath (C:\Chapter\.*)

I want to preview all 11 images with the officers names on one report page. Not sure how to do it. I have created a query with additional field names: FilePath1, FilePath2 etc, and filtered each field for the correct FilePath. I identify the appropriate query field in the control source and it puts the image where I want it. Problem is when I preview the report I get record per page.

It might work if I could insert all FilePaths and Officer Names in one record or imbed the image in the table. The file size is small and it would seem simpler.

Any help??

Ron
 
Hi Ron,

I assume you are using the Print Preview mode. If only one record is being displayed per page then I assume
[ul]
[li]your detailed section is too tall to fit multiple records on a single page[/li]
[li]your margins and other section heights are too tall[/li]
[li]you have something that forces a new page per record such as a page break control[/li]
[/ul]

You haven't provided any heights or margins so it's a bit difficult to state exactly what your problem might be.

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016
 
Duane:

I'm creating a chapter directory, 8.5"H x 5.5"W. The pictures are each 1.125"H x .8125"W and fit in a 3 x 3 array on the page with two photos at the top. I can and have copy/copied the photos to the controls individually but I'm thinking long-term for the guy that follows me and may not know how to do this procedure.

I'm using DoCmd.OpenReport stDocName, acPreview in the form SUB to display my images.

Ron
 
Hi Ron,
Apparently you are storing the path to the image file in your record and not using an attachment field?

You can use code in the On Format event of the detail section of your report to set the Picture property of an image control to the image file. Is that what you are doing?

Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    [COLOR=#4E9A06]'assuming your fully qualified picture file name is stored in FilePath[/color]
    Me.Image1.Picture = Me.FilePath
End Sub

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top