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?
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
0
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?
0
Gustav BrockCIOCommented:
I don't know, I've never used subreports this way.

/gustav
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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
0
SteveL13Author Commented:
Jeff,

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

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.