Why attachment pictures won't all print on a report

Please see report 2 in the attached database.  Open a print preview of it.

I cannot figure out why I am not getting 6 pictures for Unit 1 and 8 pictures for Unit 2.  And why is the report only reporting one picture for each unit?  I want to see 3 columns in the report with the sub-report showing the pictures.

What am I doing wrong.
Picture-report.accdb
SteveL13Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
It's because you have only two UnitId.

/gustav
Picture-report.accdb
SteveL13Author Commented:
Yes.  Two unit IDs but 6 pictures for Unit 1 and 8 pictures for Unit 2.  Can I not do it this way?
Gustav BrockCIOCommented:
I don't know, I've never used subreports this way.

/gustav
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Jeffrey CoachmanMIS LiasonCommented:
As I stated in your earlier posts, Access is not the best tool to do what you need here.
Columned subreports only compoud this issue.

And again, the multiple attachments are stored in a "collection", so just creating a sub-report will probably only pull out the first attachment.

Also, while you can certainly loop the attachments collection to get the file names, I have never found a way to display anything other than the first attachment
(there may very well be a way, ...I just have never seen it)

Finally, ...as you know, if you store the "Path" (and not the image) in a child table, ...what you are asking is simple...
sampleSo that is what I would suggest

JeffCoachman
SteveL13Author Commented:
Jeff,

Could you possibly attach your sample database so I can try to reverse engineer it?
Jeffrey CoachmanMIS LiasonCommented:
have at it...
Database97.mdb

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.