how to filter data by giving end date less than from date?

for report generation we give from date and to date as parameters. in between these dates transactions exist we get sum of one field in that grid. in that grid we have start date and end date for filter . and also we have to give another date in end date of that grid. that date is less than from . if transaction exist we get sum of one field in that grid.not exist the sum is equel to 0. how to implemet this?