Solved

Pictures in a sub-report

Posted on 2014-09-10
2
214 Views
Last Modified: 2014-09-15
I have two tables... main table and sub table.  In the sub table I have an attachment field.  In the attachment field I have 8 jpg files.

Then I have two forms.  A main form and a sub-form.  The main form has a record ID as does the subform.  This record ID field is the link between the main form and the subform.

In the subreport detail section I have an "image block".  The control source of the image block is "Picture" which is a field in the sub table.

But when I do a print preview of the main report I get the first picture over and over again... 8 times instead of each picture one time.

What am I doing wrong?
0
Comment
Question by:SteveL13
2 Comments
 

Author Comment

by:SteveL13
ID: 40315770
I just reduced the number of pictures to 4 to reduce the file size.  Please see attached.
Picture-Test-2.accdb
0
 
LVL 29

Accepted Solution

by:
IrogSinta earned 500 total points
ID: 40316097
Create a query from your table and use the query instead as the recordsource of your report.  For instance, create a query called qryDetail by adding the fields from the tblDetail table.  If you run the query you'll notice that you have multiple records this time (one for each attachement).  Then change the Recordsource of your subreport to qryDetail and voila, you can see your pictures.  Here's what your query should look like:
qryDetailRon
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question