MS Access 2003 How to create a Combo box in Parent Form to insert Data in Subform Text box

I have a Parent form "WorkHeader" with a  Combo box "Supervisors" that displays Supervisors Name, Work Location and Title.  I need to insert the "Work Location" information into my subform "Workdetails" from the Parent form "WorkHeader" Combo boxes "Work Location"
Who is Participating?

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

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.

janandbenAuthor Commented:
Who are you?
You could change the row source and type to query the users selection in the first box
Jeffrey CoachmanMIS LiasonCommented:
You have not provided much info on your forms design,so I am a bit concerned as to why a value in the main form (besides the Linking field) needs to be inserted into the subform.

For example:
Customers=Main Form

Only the linking field (CustID) needs be duplicated both forms.

In this example, I can't see that many scenarios where using a combobox in the main form should populate a value in the subform...

But in any event you would use code like this on the After update event of the combobox:

[YourSubform].Form![YourSubFormFiled] = Me.YourCombobox.Column(n)

Here "n" represents the column in the combobox that hold the data you need.
This value is zero based, so Column 1 is referred to as Column(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.