Sorting dates

  • Thread starter Thread starter stephanie
  • Start date Start date
S

stephanie

I want to sort dates in a query by the day. They're
listed mm/dd/yyyy. Right now it sorts by year. How do I
make it sort by day?
 
You need to change the Data Type to Text.
Your date will now appear as: 15-Mar-02
but you will be able to sort by day date.

Good Luck!
 
One easy way would be to create another field in your
query like this:
DaySort:Day([DateFieldInQuery]) and set the sort order to
ascending or descending depending on what you want.
HTH
Tom
 
Tom,

You're awesome. It works great. I'm learning something
new about ACCESS every day. Today is a good day.

Steph
-----Original Message-----
One easy way would be to create another field in your
query like this:
DaySort:Day([DateFieldInQuery]) and set the sort order to
ascending or descending depending on what you want.
HTH
Tom
-----Original Message-----
I want to sort dates in a query by the day. They're
listed mm/dd/yyyy. Right now it sorts by year. How do I
make it sort by day?
.
.
 
Tom,

Ok, as I said in my last post it works, HOWEVER, I can't
save it. I asked if I want to save...I say yes...then it
says "record is deleted". Do you have any clue?

Steph
-----Original Message-----
One easy way would be to create another field in your
query like this:
DaySort:Day([DateFieldInQuery]) and set the sort order to
ascending or descending depending on what you want.
HTH
Tom
-----Original Message-----
I want to sort dates in a query by the day. They're
listed mm/dd/yyyy. Right now it sorts by year. How do I
make it sort by day?
.
.
 
Ok, disregard my last post. Guess once you post, you
can't delete it. I figured it out. I had a ":" before
it. I deleted that and it saves fine now.

Thanks again,
Steph
-----Original Message-----
Tom,

Ok, as I said in my last post it works, HOWEVER, I can't
save it. I asked if I want to save...I say yes...then it
says "record is deleted". Do you have any clue?

Steph
-----Original Message-----
One easy way would be to create another field in your
query like this:
DaySort:Day([DateFieldInQuery]) and set the sort order to
ascending or descending depending on what you want.
HTH
Tom
-----Original Message-----
I want to sort dates in a query by the day. They're
listed mm/dd/yyyy. Right now it sorts by year. How do I
make it sort by day?
.
.
.
 

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

Similar Threads

ORDER BY clause not working ?!? 4
Problems with sorting 2
Date conversion 2
query on date 1
Order By using Choose not working 7
Stuck on a date issue 6
extract just month/year from table field?? 2
Date Sort 3

Back
Top