Hey Doug,
Sure, but if it is a date, then it includes a year component. Thus,
January
last year comes 12 months before January this year. That could be a good
thing. The date component would further order things, but not in a way
that
would be at all harmful. Even a time component wouldn't cause a problem
for
sorting purposes.
Whether the poster wants all the January dates for the past 10 years
together, followed by all the Februaries, and so forth, is not clear.
That
would be, in my opinion, very unusual. So, sorting the way I suggested
would be, in my opinion, more likely to be what is wanted.
The real answer is not clear from what has been posted. Facts not in
evidence.
Tom Ellison
Douglas J. Steele said:
Sorry to butt in, Tom, but if the Format function is working on the
[Month] field, that would imply that [Month] is an actual date field.
That
implies that another computed field SortMonth: Month([Month]) or
SortMonth: DatePart("m", [Month]) should be added to the query for sort
purposes.
coastal: please reconsider renaming your field. Month is a reserved
word,
so you shouldn't use it as a field name.
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
Dear Coastal:
If the numeric value of the month is in Month, then sort by that. Add
Month as a column to the query but do not display it (unless you want
to).
Tom Ellison
I have the following date field
Months: Format([Month],"mmm")
The above field when sorted asscending sorts in Alpha order, but I
need
it
sort it by Calendar order, Any suggestions?