![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#2
|
||||
|
||||
|
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 |
|
|
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 |
|