lo solucione

de esta forma y sale bien
Código Delphi
[-]
With Form1 do begin
With ADOQuery1 do begin
if active then close;
SQL.Clear;
SQL.Add('Select I.Cod_med, I.Fecha, I.Cod_pac, I.cod_ind'); SQL.Add('From Indicaciones I');
SQL.Add('where I.cod_ind = :CodigoIndicacion');
Parameters.ParamByName('CodigoIndicacion').Value := DBEdit2.Text;
Open;
end;
With ADOQuery2 do begin
if active then close;
SQL.Clear;
SQL.Add('Select M.Cod_medi, M.cantidad, M.dosis'); SQL.Add('From IM M');
SQL.Add('where M.cod_ind = :CodigoIndicacion');
Parameters.ParamByName('CodigoIndicacion').Value := DBEdit2.Text;
Open;
end;
Form1.QuickRep1.Preview;
end;
sobre esto:
Código Delphi
[-]
Data.Tindicaciones.edit; Data.Tindicaciones.post; y esto
Form1.QuickRep1.Preview; With Form1 do begin
QuickRep1.Preview;
end;
Gracias por ayudarme
