Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Impresión
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #2  
Antiguo 07-09-2006
Avatar de Caral
[Caral] Caral is offline
Miembro Premium
 
Registrado: ago 2006
Posts: 7.659
Poder: 27
Caral Va por buen camino
Hola
No se si te sirva pero esto es un codigo de un reporte que usa dos query en el para hacer enlaces.

if Reporte = 'PiezasFacturadas' then
begin
ShortDateFormat := 'mm/dd/yyyy';
//#
try
FEntregasP:=TFEntregasP.Create(self);
FEntregasP.ADOQuery1.SQL.Add(' WHERE Factura.Fecha >= #'+DateToStr(DTP1.Date)+ '# AND Factura.Fecha <= # '+DateToStr(DTP2.Date)+'#');
FEntregasP.ADOQuery1.SQL.Add(' AND Factura.Excento = True ');
FEntregasP.ADOQuery1.SQL.Add(' ORDER BY Factura.Fecha DESC, Factura.CodFactura DESC ');
// con este (Showmessage) veo lo que me envia el query antes de enseñar el reporte
//Showmessage(QRMovBanNac.ADOQuery1.SQL.Text);
FEntregasP.ADOQuery2.SQL.Add(' WHERE Factura.Fecha >= #'+DateToStr(DTP1.Date)+ '# AND Factura.Fecha <= # '+DateToStr(DTP2.Date)+'#');
FEntregasP.ADOQuery2.SQL.Add(' AND Factura.Excento = True ');
FEntregasP.ADOQuery2.SQL.Add(' ORDER BY Factura.Fecha DESC, Factura.CodFactura DESC ');
FEntregasP.ADOQuery1.Open;
FEntregasP.ADOQuery2.Open;
ShortDateFormat := 'dd/mm/yyyy';
FEntregasP.ShowModal;
finally
FEntregasP.Free;
end;
Tal vez te de alguna idea.
Saludos
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
reporte con 5 tablas JODELSA Impresión 0 10-06-2005 21:24:27
Reporte con 3 tablas? help please Ryu Impresión 1 26-04-2005 11:18:16
Reporte tablas relacionadas silviodp Impresión 0 06-01-2005 15:25:36
Reporte de combinacion de tablas Choclito Impresión 1 19-07-2004 14:02:11
ok... el reporte de 2 tablas... (otra vez) olybola Impresión 0 29-05-2003 20:38:18


La franja horaria es GMT +2. Ahora son las 01:14:01.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi