Ver Mensaje Individual
  #6  
Antiguo 18-03-2010
Avatar de Caral
[Caral] Caral is offline
Miembro Premium
 
Registrado: ago 2006
Posts: 7.659
Reputación: 27
Caral Va por buen camino
Hola
Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
begin
    ShortDateFormat := 'mm/dd/yyyy';
    try
         QReport1:= TQReport1.Create(self);
         QReport1.ADOQuery1.SQL.Add('select cont(pk), id_emp(fk), fecha_inicial, fecha_final , produccion From general');
         QReport1.ADOQuery1.SQL.Add(' WHERE  general.fecha_inicial >= #'+DateToStr(DateTimePicker1.Date)+
                                    '# AND  general.fecha_final <= # '+DateToStr(DateTimePicker2.Date)+'#');
         QReport1.ADOQuery1.Open;
         ShortDateFormat := 'dd/mm/yyyy';
         QReport1.Preview;
      finally
         QReport1.Free;
 end;
end;
Saludos
PD: Hola AzidRain: Tu crees ??? jejeje.
__________________
Siempre Novato
Responder Con Cita