Если по одному из вариантов то так:
Код:
DataModule2.StudentQuery.SQL.Add(Format('where spec LIKE %s OR spec LIKE %s',[Combobox1.text,Combobox2.text]));
а если по обоим сразу то так:
Код:
DataModule2.StudentQuery.SQL.Add(Format('where spec LIKE %s AND spec LIKE %s',[Combobox1.text,Combobox2.text]));