> -----Original Message----- > From: [email protected] [mailto:[email protected]] > On Behalf Of Kurt Wendt > Sent: Friday, May 07, 2010 1:43 PM > To: [email protected] > Subject: Query Fails Under VFP9... > > ...and, yet - the SAME Query would work FINE under VFP7. And, it's > driving me NUTS that I can't figure out WHY! > > This is the Select Statement: > SELECT invoice, store, style, color, PPitem, ; > LineGroups, Sum(ShpTot) AS ShpTot ; > From &CurrTmpFile. ; > Where !EMPTY(AstFlag) ; > Group By Store, PPitem ; > Into Cursor InvLn_Sums > > The Error message I get is the following: > SQL: GROUP BY clause is missing or invalid. > > I find it VERY Strange that a Command that works under VFP7 does NOT run > when run under VFP9. And, I even just tested it again now - and sure > enough it functions under VFP7.
What is your SET ENGINEBEHAVIOR set to in both versions? Check out: http://msdn.microsoft.com/en-us/library/ax9aye37%28VS.80%29.aspx Especially bits about GROUP BY. Thanks, Matthew Jarvis || Business Systems Analyst IT Department McKenzie-Willamette Medical Center 1460 G Street, Springfield, OR 97477 || Ph: 541-744-6092 || Fax: 541-744-6145 -------------------------------------------------------------------------- Disclaimer: This electronic message may contain information that is Proprietary, Confidential, or legally privileged or protected. It is intended only for the use of the individual(s) and entity named in the message. If you are not an intended recipient of this message, please notify the sender immediately and delete the material from your computer. Do not deliver, distribute or copy this message and do not disclose its contents or take any action in reliance on the information it contains. _______________________________________________ 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/69f310c05dd83c48a84ba3769ce1ecf8032b2...@tntriexevs02.triadhospitals.net ** 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.

