dbTalk Databases Forums  

order dates

comp.databases.ms-access comp.databases.ms-access


Discuss order dates in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kevcar40
 
Posts: n/a

Default order dates - 01-24-2012 , 02:33 PM






hi
I have a table containing several fields one is a date field
i have summed the data and grouped my month depending on the date field value

what i want to do is order the months in a Chart
the problem is the them date could roll over from one year to the next
ie 2011 to 2012
i want the chart to show themonths from last year in order then the months from this year in order

any ideas how i can do this please


thank

kevin

Reply With Quote
  #2  
Old   
Phil
 
Posts: n/a

Default Re: order dates - 01-24-2012 , 04:18 PM






On 24/01/2012 20:33:21, kevcar40 wrote:
Quote:
hi
I have a table containing several fields one is a date field
i have summed the data and grouped my month depending on the date field
value

what i want to do is order the months in a Chart
the problem is the them date could roll over from one year to the next
ie 2011 to 2012
i want the chart to show themonths from last year in order then the months
from this year in order

any ideas how i can do this please


thank

kevin

Add to your query 2 fields :-

MyYear:Year(MyDate)
MyMonth:Month(MyDate)
then sort y MyYear & MyMonth

Phil

Reply With Quote
  #3  
Old   
kevcar40
 
Posts: n/a

Default Re: order dates - 01-25-2012 , 01:05 AM



thanks Phil

worked a treat

Reply With Quote
  #4  
Old   
Patrick Finucane
 
Posts: n/a

Default Re: order dates - 01-25-2012 , 09:03 AM



On Jan 25, 1:05*am, kevcar40 <kevca... (AT) btinternet (DOT) com> wrote:
Quote:
thanks Phil

worked a treat
Compliments to Phil on a good solution

Reply With Quote
  #5  
Old   
Phil
 
Posts: n/a

Default Re: order dates - 01-26-2012 , 05:09 PM



On 25/01/2012 15:03:27, Patrick Finucane wrote:
Quote:
On Jan 25, 1:05*am, kevcar40 <kevca... (AT) btinternet (DOT) com> wrote:
thanks Phil

worked a treat

Compliments to Phil on a good solution

They say with old age comes wisdom.
Plenty of the former, but b.....r all of the later .. but I live & learn.

Phil

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.