with qryPDMX do {TADOQUERY}
begin
Close;
SQL.Clear;
SQL.Add( Format('SELECT * FROM RQ_PDMX where PDDH = ''%s''',[cxDBTextEdit1.Text]));
open;
end;无法显示数据 ,何解?
begin
Close;
SQL.Clear;
SQL.Add( Format('SELECT * FROM RQ_PDMX where PDDH = ''%s''',[cxDBTextEdit1.Text]));
open;
end;无法显示数据 ,何解?
begin
Close;
SQL.Clear;
SQL.Add( Format('SELECT * FROM RQ_PDMX where PDDH = ''%s''',[cxDBTextEdit1.Text]));
open;
end;
showmessage(inttostr(qryPDMX.RecordCount));
加一句showmessage看看是否qryPDMX已经提取了数据,如果是,就要检查其他的如DBgrid连接DataSource,Datasource连接qryPDMX