Código SQL [-] select sum(importe) as sumaa from lineasdespacho where (FECHA between :FECHANAC1 AND :FECHANAC2) and (hora between :hora1 and :hora2);
select sum(importe) as sumaa from lineasdespacho where (FECHA between :FECHANAC1 AND :FECHANAC2) and (hora between :hora1 and :hora2);