Did you try putting MONTH(saleDate) directly in the GROUP BY clause? cheers, barneyb
On 6/22/05, mayo <[EMAIL PROTECTED]> wrote: > I'm trying to do a group by date on an access db. > > I have a list of sales and want to group by month and year. I can't get > even a test run to work > > SQL below: > > SELECT MONTH(saleDate) AS theMonth, sum(saleTotal) as > dailyTotal > FROM sales > GROUP by theMonth > > Thx > > -- gil > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210301 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54