John Cosmas
2005-06-15 04:46:20 UTC
I have a SELECT statement that picks up the date from a variable that I've
assigned its value earlier.
pstrStartDate = "2005/06/01"
pstrEndDate = "2005/06/02"
SELECT * ;
FROM car_stat ;
WHERE car_stat.a LIKE "WC2005" ;
AND car_stat.ad BETWEEN {^"+pstrStartDate+"} AND {^"+pstrEndDate+"} ;
AND car_stat.status IN ("D") ;
ORDER BY car_stat.k4 ;
INTO TABLE wrk_car_stat
However, this causes the VFP 6.0 to generate an error. Please help.
assigned its value earlier.
pstrStartDate = "2005/06/01"
pstrEndDate = "2005/06/02"
SELECT * ;
FROM car_stat ;
WHERE car_stat.a LIKE "WC2005" ;
AND car_stat.ad BETWEEN {^"+pstrStartDate+"} AND {^"+pstrEndDate+"} ;
AND car_stat.status IN ("D") ;
ORDER BY car_stat.k4 ;
INTO TABLE wrk_car_stat
However, this causes the VFP 6.0 to generate an error. Please help.