DTE_OWN doesn't need to be wrapped by a vfp function. You can use a parameter on the date comparison like ((dte_own>=?startdate) and (dte_own<=?enddate))
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of James E Harvey Sent: Tuesday, December 28, 2010 2:28 PM To: 'ProFox Email List' Subject: select on ms sql 2005 data on web server I can connect and pull all the records using: SQLEXEC(m.lih,"SELECT * FROM hsf_webct") But when I try the where clause it fails: SQLEXEC(m.lih,"SELECT * FROM hsf_webct where TTOD(DTE_OWN) = {^2010/12/28}") dte_own is a datetime MS SQL2005 datatype James E Harvey Corresponding Officer/M.I.S. Hanover Shoe Farms, Inc. [email protected] 717-637-8931 fax: 717-637-6766 cell: 717-887-2565 [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/492001cba6d2$72b26cf0$581746...@[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

