var
pADOQ: TADOQuery;
begin
pADOQ := TADOQuery.Create(nil);
pADOQ.Connection := ADOCon;
pADOQ.SQL.Text := 'select * from TableName where 字段1="'+ edit1.Text +'" and 字段2="'+ edit2.Text +'"';
pADOQ.Open;
if pADOQ.RecordCount <= 0 then exit;
pADOQ.First ;//将游标放到结果集的第一条记录
Memo1.text = '';
while not pADOQ.Eof do//开始循环结果集(当该条记录不是最后一条时)
begin
Memo1.text := Memo1.text + #13#10 + pADOQ.FieldByName('字段1').AsString;
pADOQ.Next;
end;
真的没明白你需要什么帮助,只有猜测着回复,很难让你满意