Link to home
Start Free TrialLog in
Avatar of J G
J G

asked on

Combo Box with a control source is "locked" part II - choosing vendor for first store would be the default value for all stores

This is a additional question in regards to the last question I asked "Combo Box with a control source is "locked""

Rey's solution of choosing Dynaset with Inconsistent updates did the trick.  

Is it possible to get the the Vendor Combo Box to default to the same value for all stores when I choose the vendor for the top store?  If I want to choose another vendor for a certain store I would do it after.

How would this be accomplished?
Avatar of PatHartman
PatHartman
Flag of United States of America image

If the vendor should always be the same for all records in the subform, then vendor is in the wrong table.  If you want it to be mostly the same but allow overrides, then add a vendor combo on the main form and in the BeforeInsert event of the subform, populate the subform vendor with the default from the main form combo.

Me.VendorID = Forms!mainform!cboVendorID

Then they can change the vendor one at a time as necessary.
Avatar of J G
J G

ASKER

Would it be possible to make the vendor combo appear as if it was a part of the sub form?

I understand conceptually what you are saying, but I am having a hard time figuring out how to integrate it in my current layout.
ASKER CERTIFIED SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial