Hello all, just wonder if anyone can help with something basic in reports:
I have 4 parameters with expression:
rawstartdate
Date type
dateArithmetic(now(), -12, “hr”)
rawenddate
Date type
now()
StartDate
String type
dateFormat({rawstartdate}, “MM-dd-yyyy HH:mm:ss”)
EndDate
String type
dateFormat({rawenddate}, “MM-dd-yyyy HH:mm:ss”)
and my query is a Basic SQL Query:
SELECT *
FROM my_table
WHERE t_stamp BETWEEN {StartDate} AND {EndDate}
Order by t_stamp ASC
how ever, I keep getting syntax errors go to Design/Preview tab:
WARN: Simple Query could not be completedIncorrect syntax near ‘05’.
(current time is 5)
when I do the above query in the query browser, I do get the results.
Am I not type casting correctly in the parameters declarations?
Thanks.