the simplest solution, i can think of at the moment, would be to have the record source of the subform being a query with the criteria equal to the combobox or list box that you are using for the search and in the afterupdate event of that combo box have the subform's recordsource requeried.
e.g.
SELECT tblsuberrors.suberrorid, tblsuberrors.errorgroup, tblsuberrors.suberrortype FROM tblsuberrors WHERE (((tblsuberrors.errorgroup)=Forms!fsubartrainentry !cboerror));
in the above i'm picking select all the suberrors where the errorgroup is in the combobox i just changed.
|