On 6/26/07, Dave Crozier <[EMAIL PROTECTED]> wrote: SELECT ALL is inappropriate here. ALL is the opposite of DISTINCT when used as part of a UNION command.
How about: SELECT Year(Test.Date) AS TheYear, Month(Test.Date) AS TheMonth, SUM(Test.nValue) as Column_Value FROM Test GROUP BY TheYear, TheMonth SORT BY TheYear, TheMonth INTO CURSOR cur_All -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com _______________________________________________ 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/[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.

