Hola
Me estraña mucho todo esto, tal vez nos puedes explicar un poco mas?
Código Delphi
[-]
procedure TFreceta.BitBtn8Click(Sender: TObject);
var
rep: string;
begin
Data.Tindicaciones.edit;
Data.Tindicaciones.post;
rep:=DBEdit2.Text; Form1.ADOQuery1.close;
Form1.ADOQuery1.SQL.Text:='select * from Indicaciones WHERE Cod_ind Like'+Quotedstr('%'+rep+'%');
Form1.ADOQuery1.open;
Form1.Tdetalle.Active:=true;
Form1.Tmedicamento.Active:=true;
Form1.QuickRep1.Preview;
Data.Tindicaciones.insert;
Data.Tpaciente.insert;
Data.Tmedico.insert;
Data.Tindicaciones.edit;
DBText1.caption:=datetostr(DateTimePicker1.Date);
DBGrid1.Enabled:=false;
end;
Las partes que tengo dudas estan subrayadas
Saludos