I'm trying to find all events within a time period that is defined by the user with Start/End date parameters. And then I'm linking the values to a sub-report.
And how I have accomplished this is to create a formula for the Start and End dates like:
EndDate = {?EndDate} and {?StartDate}
And in my sub-report Record Selection, I have:
and {rpt_DriveMaster.FromDateTime} in {?Pm-@StartDate} to {?Pm-@EndDate}
But when I look at the SQL query that Crystal generates, I notice:
("rpt_DriveMaster"."FromDateTime">={ts '2014-12-18 00:00:00'} AND "rpt_DriveMaster"."FromDateTime"<{ts '2014-12-19 00:00:00'})
Which shows that it is not grabbing the events on 12/19/2014. How can I fix this to make sure I'm getting data from all dates?
I notice the start date is using a >= to get data from 12/18. Seems like the end date should then be using a <=.
Suggestions?