Solved

Pictures in a sub-report

Posted on 2014-09-10
2
210 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
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…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

805 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