I've been scouring the net to work out the answer to this caper: what do I have to do to get a date comparison to work with query of queries in CF 5.0:
The error I am getting is: Query Manipulation Error Code = 0 Expected right parenthesis at:{ts '2005-05-30 08:00:00'} The latest incarnation of my sordid query of queries is: SELECT * FROM GET_ALL_DAY WHERE sales_appointment_date = #createodbcdateTime(createdatetime(year(dateadd("d",this.count,thisWeek)),month(dateadd("d",this.count,thisWeek)),day(dateadd("d",this.count,thisWeek)),thisHour,thisMinute,0))# Thanks for any ideas. I've tried sticking the date code into a CFQUERYPARAM tag, but that didn't seem to work. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208572 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54