Dave Crozier wrote:
> Hi Folks,
> I just came across what I think is a VFP error and I’m wondering should it
> be reported.
>
> If you group by a field generated by the Date(...) function then VFP throws
> an error.
>
> Could someone confirm this is the same in VFP8 and VFP7 and if it has been
> spotted previously as an error. 
>   
Hi Dave,

Yes, get error in VFP7, but you can get it to work with:

Select All ;
  LEFT(CMonth(Test.Date),3)+STR(Year(Test.Date),4) as Sort_Key, ;
  Sum(Test.nValue) as Column_Value ;
 From Test ;
group by 1 ;
Into Cursor curAll ;
Order By 1

Presumably you just want to group by month/year.

Peter





_______________________________________________
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.

Reply via email to