Hi
Crystal reports: 8.5
Database: Informix
I have just started using Crystal reoports and am stuck on a date range issue....
I am attempting to design a report where I will specify a parameter field 'DateToday', and then create formula fields as follows:
If {table.transdate} in {?DateToday} and {?DateToday}-7, then {table.value}, else 0
If {table.transdate} in {?DateToday}-8 and {?DateToday}-14, then {table.value}, else 0
...and so on.
I understand that using 'in' requires a date range value from the parameter field, but I used to request a run-time parameter from the user (either from within a form or directly as part of the query) and then use the 'between x and y' function in MS Access to define ranges.
Crystal doesn't seem to have the 'between x and y' function... I'm sure I am missing something really simple but I can't seem to get my head around this one at the moment.
Any help much appreciated.
Crystal reports: 8.5
Database: Informix
I have just started using Crystal reoports and am stuck on a date range issue....
I am attempting to design a report where I will specify a parameter field 'DateToday', and then create formula fields as follows:
If {table.transdate} in {?DateToday} and {?DateToday}-7, then {table.value}, else 0
If {table.transdate} in {?DateToday}-8 and {?DateToday}-14, then {table.value}, else 0
...and so on.
I understand that using 'in' requires a date range value from the parameter field, but I used to request a run-time parameter from the user (either from within a form or directly as part of the query) and then use the 'between x and y' function in MS Access to define ranges.
Crystal doesn't seem to have the 'between x and y' function... I'm sure I am missing something really simple but I can't seem to get my head around this one at the moment.
Any help much appreciated.