>cSqlCommand = "select * from mytable where myDateTimeField >= ?06/01/2008" >>
lcDate = DATE(2008,6,1) cSqlCommand = "select * from mytable where myDateTimeField >= ?m.lcDate" ** or CREATE CURSOR crsTest (Fld1 D) INSERT INTO crsTest VALUES (DATE(2008,6,1)) cSqlCommand = "select * from mytable where myDateTimeField >= ?crsTest.Fld1"When you want to send Date as value built-in the string, then better use so called ISO standard (yyyymmdd) and pass it as string. SQL Server will parse it w/o any troubles. Sending DateTime that way is setting independent.
lcDate = DATE(2008,6,1) cSqlCommand = "select * from mytable where myDateTimeField >= '"+DTOS(lcDate)+"'" *** result should look like this: ** select * from mytable where myDateTimeField >= '20080601'