OK. mira
LAS FECHAS LAS INGRESO EN LOS DATATIMEPICKER.
este es mi codigo que tengo en el button del form
Código Delphi
[-]
with frmReporteFecha.qry1 do
begin
Active:=false;
SQL.Clear;
SQL.Text:='SELECT FECHASOLICITUD,DOCUMENTO,DESCCLIENTE FROM TSCBAST WHERE((FECHASOLICITUD >='+QuotedStr(DateToStr(dtp1.Date))
+') AND (FECHASOLICITUD<='+QuotedStr(DateToStr(dtp2.Date))+'))';
Active:=True;
end;
frmReporteFecha:=TfrmREPORTEFECHA.CREATE(NIL);
try
frmReporteFecha.qrdbtxtFECHASOLICITUD.Caption:=DATETOSTR(dtp1.Date);
frmReporteFecha.qrdbtxtFECHASOLICITUD1.Caption:=DATETOSTR(dtp2.Date);
frmReporteFecha.qrdbtxtDOCUMENTO.Caption:=frmReporteFecha.qry1.fieldbyname('DOCUMENTO').AsString;
frmReporteFecha.qrdbtxtDESCCLIENTE.Caption:=frmReporteFecha.qry1.fieldbyname('DESCCLIENTE').AsString ;
frmReporteFecha.Reportefecha.preview;
finally
frmReporteFecha.Reportefecha.Free;
end;
y en oTro form es donde tengo el reporte donde esta el quickport y la qry1.
el qreport dataset tengo enlasado a la qry, los qrdbtext los prodiedad dataset enlasada a la qry1 y datafield a ls campos. No se que esta mal o que mas puedo hacer.?