Open the parent form in design view and select the subform control; that's
the control which houses the subform. In its properties sheet change the
LinkMasterFields and LinkChildFields properties. The former is usually the
name of a field in the parent form's underlying table or query, and the
latter the name of the corresponding field in the subform's underlying table
or query. The subform will return rows where the value of the field in
question matches that of the field in the parent form's current record.
Bear in mind that the LinkmasterFields property can also be the name of an
unbound control in the parent form, so you could have an unbound combo box
which lists all customers say, and the subform could show the selected
customer's orders.
Also the properties can include more than one field name, separated by a
semi-colon. Both properties must include the same number of field names,
however.
Ken Sheridan
Stafford, England