Hi all, I've got a simple SQL query that I'm trying to get optional between date parameters working for. At the moment, I've got this working: SQL-wise it should simply just be: WHERE START_DATE BETWEEN START_DATE AND END_DATE Jaspersoft-wise the input controls need to be optional WHERE (START_DATE >= $P{REPORT_START_DATE} OR $P{REPORT_START_DATE} IS NULLAND START_DATE <= $P{REPORT_END_DATE} OR $P{REPORT_END_DATE} IS NULL)Problem is, whilst I'm getting no errors when both the REPORT_START_DATE and REPORT_END_DATE are populated I'm seeing start dates that are greater than the report end date? Edit: Adding AND ($X{BETWEEN, CODE_START_DATE, $P{1.REPORT_START_DATE}, $P{2.REPORT_END_DATE}}) to the end of the SQL Script gives me an "Unrecognized SQL ecape 'Between'" error. :(