Hi All,
I am using Crystal Reports 2008, I have two parameters setup ... one is for a string and one is a date. I added these to the Select Expert and if they are both filled out by the user then the report works fine ...
For scheduling, if date parameter leave blank than date parameter should pull all the last Month data, but when I am leaving date Parameter blank, I got error "Date parameter is empty". I read something about making the date parameter into a string and then converting it afterwards but I really would like the user to be able to choose a date from a "calendar" versus having to type it in ...
Seems straightforward but I am not getting it .... Tried this but it came up empty if the date was ignored ..
[highlight #204A87]Where b.START_DT >= (if (isnull({?Start_date}) or {?Start_date} = '') then(select TRUNC(ADD_MONTHS((SYSDATE,yyyy/mm/dd), -1),'Month') from dual) else {?Start_date})[/highlight]
any insight is appreciated ...
I am using Crystal Reports 2008, I have two parameters setup ... one is for a string and one is a date. I added these to the Select Expert and if they are both filled out by the user then the report works fine ...
For scheduling, if date parameter leave blank than date parameter should pull all the last Month data, but when I am leaving date Parameter blank, I got error "Date parameter is empty". I read something about making the date parameter into a string and then converting it afterwards but I really would like the user to be able to choose a date from a "calendar" versus having to type it in ...
Seems straightforward but I am not getting it .... Tried this but it came up empty if the date was ignored ..
[highlight #204A87]Where b.START_DT >= (if (isnull({?Start_date}) or {?Start_date} = '') then(select TRUNC(ADD_MONTHS((SYSDATE,yyyy/mm/dd), -1),'Month') from dual) else {?Start_date})[/highlight]
any insight is appreciated ...