Ver Mensaje Individual
  #15  
Antiguo 18-03-2011
leofuentes21 leofuentes21 is offline
Miembro
NULL
 
Registrado: feb 2011
Ubicación: la ceiba, atlantida
Posts: 66
Reputación: 14
leofuentes21 Va por buen camino
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.?

Última edición por leofuentes21 fecha: 18-03-2011 a las 17:39:11.
Responder Con Cita