Link to home
Start Free TrialLog in
Avatar of dmrs
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
WHERE  #form.tod# BETWEEN #createODBCdatetime(form.Sdate)# AND #createODBCdatetime(form.Edate)#

Open in new window

Avatar of _agx_
_agx_
Flag of United States of America image

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
Avatar of dmrs
dmrs

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.