What's wrong with my SELECT statement below?
Error I get - "Command contains unrecognized phrase/keyword."
I am trying to select records for a certain year that have a certain ID code and count/list them by month for assorted zip codes.
cField = cRetVal
SELECT mytable.zip, mytable.date ;
FROM mytable ;
WHERE YEAR(mytable.date) = YEAR(DATE())-1 .AND. ;
WHERE mytable.&cField = "1A" .OR. ;
mytable.&cField = "1B" .OR. ;
mytable.&cField = "1C" .OR. ;
ORDER BY MONTH(mytable.date) ;
INTO CURSOR rpt
Thanks for helping me out.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site:
www.stephenkramer.comWould you believe Far Side Lite?
More than 270 original cartoons.