Combo Box Selections

I

imbd4a

I have a situation where I have a unbounded main form with 2 combo boxes
located in the header. Within the detail of the form lives a subform.

Combobox_1 is unbound and generates a list from a table for its dropdown
selection. I would like Combobox_2 to be a select list of only those
elements which satisfy the criteria of combobox_1. Then I would like the
subform to link to the selections of Combobox_2.

How do I do this and keep them all synced?

Thanks
 
I

imbd4a

Sorry 'bout that...I meant to repost not reply.
That did it, Thanks.
Now that the boxes are working how do I get the subform to refresh itself on
the combobox_2 selection once it is made?
Thanks again.
B
 
K

Ken Snell

On the AfterUpdate event of combobox_2, requery the subform:

Private Sub combobox_2_AfterUpdate()
Me.Subform.Form.Requery
End Sub

Where Subform is the name of the control that holds the subform.
 
I

imbd4a

Thanks Guys !

Ken Snell said:
On the AfterUpdate event of combobox_2, requery the subform:

Private Sub combobox_2_AfterUpdate()
Me.Subform.Form.Requery
End Sub

Where Subform is the name of the control that holds the subform.

--

Ken Snell
<MS ACCESS MVP>

itself
 
Top