Thanks Jackied, it worked! I declared <cfset MinDate = #DateAdd("d", -Form.Days, Now())#> before the query and in the query I used AND MessageDate >= #MinDate#. This was what I wanted so thanks for the solution.
Thanks for your replies. Date is not the variable I used but I used in in this exemple to make the problem clear and simple. I will try the CFSET declaration before the query. Otherwise I will have to use a statement which the MySQL database will understand.
Hello,
I have a problem with using DateDiff in a query. #DateDiff("D",date, NOW())# <= #Form.Days#
The error is that he cannot determine the value of 'datum' but that's very very correct. Outside the query it's no problem to use the same DateDiff statement. It seems I cannot already...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.