I have a report that calculates and displasy data per week. User should be able to enter {?Week_ending_dat} and {?weeks} . For example, if they enter 10/30 and 3, it should display data for 3 weeks prior to 10/30. In my command, I do something like
select ... from...
where {?Week_ending_dat} <= Column.Date + ({?weeks} -1) * 7 days
I set {?weeks} type to Number, but CR doesnt like me doing anything to it, ie - 1 * 7 days. There are no issues if I put hardcoded number there instead, so sql itself is fine, parameter is the issue :(
Error is : "CLI0118E Invalid SQL syntax. SQLSTATE=37000"