Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Pictures in a sub-report

Posted on 2014-09-10
2
Medium Priority
?
223 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Suggested Courses

773 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