Sorting by Month

G

Guest

I have sales data separated by month; however, Access is
sorting the months in alphabetical order rather than
chronological order. How do I fix it?
 
D

Dirk Goldgar

I have sales data separated by month; however, Access is
sorting the months in alphabetical order rather than
chronological order. How do I fix it?

How is the month actually stored? You should be storing either an
actual date (in a date/time field) or a month *number* (1 to 12). If
you have stored your sales dates/months this way and you are still
getting things sorted by the month name (alphabetical), then your query
must be converting the month number to a month name first, and then
sorting. This is not what you want to do. Please give the details of
the underlying table design and the SQL of the query you are using to
sort it.
 

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