dmrs
asked on
how to query a week date range in cold fusion report builder?
Hi,
I'm trying to query in report builder a date range of 1 week, so what is appears on my report is one week.
No matter what I put in it errors on me. I know its probably something very simple that I'm over looking but any help can't hurt me at this point.
thanks
Dave
I'm trying to query in report builder a date range of 1 week, so what is appears on my report is one week.
No matter what I put in it errors on me. I know its probably something very simple that I'm over looking but any help can't hurt me at this point.
thanks
Dave
WHERE #form.tod# BETWEEN #createODBCdatetime(form.Sdate)# AND #createODBCdatetime(form.Edate)#
That is the correct syntax (more or less). What is the error message and what are the values of the 3 variables?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Good. Don't forget to accept your comment as the answer (and close the question).
> WHERE #form.tod#
BTW: You shouldn't use form values in a query like that. It's a sql injection risk.
> WHERE #form.tod#
BTW: You shouldn't use form values in a query like that. It's a sql injection risk.