ADOQuery1.SQL.Clear; AdoQuery1.Sql.Text := 'select * from organized where Title like :Edit1.Text and classroom like :Edit2.Text'; AdoQuery1.Open;