Link to home
Start Free TrialLog in
Avatar of JosephEricDavis
JosephEricDavis

asked on

Access 2007 - Set

Sorry to keep popping out so many Access questions.  Here comes another one...

I have a form that I generated with the form wizard and it has a tabular format.  So it has a head, a detail and a foot.  In the detail portion of the form I have a list of text box and combo box controls that are bound to each record in the table the form is bound to.  So a new row of these controls is created for each record in the table.

This form sits as a subform inside of another form, which has a combo box control on it.  I've already got the form so that it filters the records shown in the sub form when you choose a value from the combo box, But what I need to do now is to be able to change the rowsource on the combo boxes in the sub form based on the selection made in the combo box on the parent form.

I'm pretty sure it wouldn't be that hard to do from VBA code, but I'm not sure how to find the control in VBA to manipulate it.

Any help on this would be great.

Thanks
SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
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
Avatar of JosephEricDavis
JosephEricDavis

ASKER

Ok... that's what I was going for to begin with, but I made the poor mistake of trusting intellisense and because I didn't have the control name in the list of available terms I figured it would cause an error if I forced it.  Which it didn't.  So it works.

But I have one more questions related to this if I may ask really quick...

In the same form as part of the same record there are actually two combo boxes.  The first one is dependent on the main combo box on the form to determine it's available values.  The second combox in the record is going to depend on the first combo box to determine it's available values.

So there are two things I need to do here.  The first to have the second combo box disabled until the user selects a value from the first combo box.  The second is to be able to populate the second combo box based on the value selected in the first combo box.
ASKER CERTIFIED SOLUTION
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
Sweet, Thanks