Hola
Vamos a ver como va esto.
Código Delphi
[-]
procedure TForm1.Button1Click(Sender: TObject);
var
Mes :Integer;
FFecha: TDateTime;
FechaAc, Fecha1, Mes1, Dia1: string;
begin
Dia1:= '01'; Mes:= MonthOfTheYear(Date); FechaAc:= DateToStr(Now); FFecha:= Now;
If Mes >= 10 then begin
Mes1:= '/';
end
else
Mes1:= '/0';
Fecha1:= Dia1 + Mes1 + IntToStr(Monthof(FFecha)) + '/'+ IntToStr(Yearof(FFecha));
With QVentas do begin
Close;
SQL.Clear;
sql.add('select * from ResumenVentas where FechaCompra >= :fechainicio and FechaCompra <= :fechafin');
parambyname('fechainicio').Value:= StrToDate(Fecha1); parambyname('fechafin').Value:= StrToDate(FechaAc); Open;
Creo que esta claro, soy novato.


Saludos