When I want to display month ina query, it orders the month obtained by a format(mydate;"mm" command by alphabetical orders : April, August. How can I avoid this ?
Despite being a basic question i've never found how.
Delorfra,
Sort in any order you prefer. January to December would be Ascending, December to January would be Descending. Not Sorted will follow other sort orders in the query. You can also control your sorts by the position of the column in the query if you have other sorts too. Point is play around a bit and see all your options. Gord
ghubbell@total.net
Hey there's another twist: The problem of a date range that extends from one year to the next. Date part "m" gives you something that sorts correctly within the current year, but if your date range extends from Oct of the previous year to Mar of the current you're out of luck. I've tried several approaches to this (admittedly not an exhaustive search yet) without success. Maybe DateSerial descending since that gives a truly linear, rather than cyclical, number to work with.
I've been struggling with this same problem. I've already come up with the solutions proposed, but it only works if you display the months as numbers. When I display them as words, I'm back to the original problem, which is that the months are displayed in ALPHABETICAL order, NOT chronological order. I didn't see that problem answered here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.