Need help sorting months

  • Thread starter Thread starter KK
  • Start date Start date
K

KK

I have a table which has a field called "Time Period". In these fields,
there are a bunch of months ie. January, February etc.

How can I sort it so that when I create a combo box that pulls up
distinct Time Period values, it shows up as "January, February, April,
June" instead of "April, February, January, June"??
 
Why didn't you reply to my reply? Why did you start a new thread?
 
KK said:
How can I sort it so that when I create a combo box that pulls up
distinct Time Period values, it shows up as "January, February, April,
June" instead of "April, February, January, June"??

SELECT MoName, CInt(Format(CDate(MoName & "-1-2006"), "m")) AS Mo
FROM tblMonthNames
ORDER BY 2;
 

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

Back
Top