Sorting by month

K

Karlos

hi,

is there any way i can sort my date field by month.

the date is set out in this way dd/mm/yyyy

so is it possible to sort it by month?

cheers in advance
 
D

Dan Artuso

Hi,
If you only want to sort by month, use this Order By:

Order By Month(yourDateField)
 
D

Dan Artuso

Hi,
In the query grid, create a calculated field.

myMonth:Month(yourDateField)

Sort on that field. You don't have to display this field if you don't want to.

If you go into SQL view, this translates into:
Order By Month(yourDateField)

Substitue the real field name for yourDateField
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top