Populating dropdown depending on subform value

In the attached database, I have a main form with 3 inter-related subforms.

On the 2nd subform (Collection) you select a Company.
On the 3rd (Collect Raw Material) you select a Raw Material from a dropdown. This dropdown is dependent upon the value of the Company in the 2nd subform. The logic being that each Company is only allowed to have certain Raw Materials collected, so the tbl_company_material dictates which Company is associated to which Raw Material.

So I need the dropdown to be refreshed each time:
A new collection is added in the Collections subform.
When the Company in the Collections subform.
When the Company in the Collections subform is changed
Database1.accdb
rick_dangerAsked:
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.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
You could perhaps Requery the Subform after those events:

Me.[Collect Raw Material].Form.Requery

If you need to do that from one of the other "sibling" Subforms:

Me.Parent.[Collect Raw Material].Form.Requery

I'd also encourage you to use proper nameing conventions for your objects. The Subform control really should be named sfCollectRawMaterial - no spaces, and (optional) as two or three character prefix that identifies the type of object. While it seems a minor issue, it can have a big impact down the road.
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.