
Originally Posted by
amrut
1. Using listbox - Create a textbox on main form say txtLinkBox. Set its controlsource to the schoolname from subform. It should look like "=[YoursubformControl].[Form]![Schoolfieldcontrol]. Modify the SQL of listbox to include the txtLinkbox as criteria.In the form's current event, you have to requery the listbox.
2.Using another sub form- Set the SQL for listbox as source for the 2nd subform. Drag this subform to main form. In the 2nd subforms's Property sheet>Data>Link Master fields & Link Child fields, select the txtLinkbox as Master field and the schoolcontrolfield in 2nd subform as child field. Now whenever a record is selected on 1st subform, the corrosponding records will be shown by 2nd sub form.
After testing, hide this text box.