A family of Microsoft relational database management systems designed for ease of use.
There are three processes operating here:
1. By linking the subform to its parent in the usual way by means of the LinkMasterFields and LinkChildFields properties of the subform control, when you move to a record in the 'master', which might be the main form or a subform which has a subform within it, the value of the foreign key column in every row of the 'child' subform's recordset will be that of the primary key of the current record in the 'master'.
2. In an unbound combo box in the subform you then just need to reference the foreign key column in the subform's recordset as the parameter in the combo box's RowSource property. By requerying the combo box in the subform's Current event procedure the combo box's list is restricted to those rows where the value of the column in the combobox's RowSource query matches the current foreign key value in the subform's recordset. By also setting the value of the combo box to that of the primary key of the subform's recordset the combo box is synchronized with the current record selected in the subform.
3. The code in the combo box's AfterUpdate event procedure moves the subform to the record selected in the combo box in the way I described earlier.