Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort Dates by Month

Status
Not open for further replies.

Bill6868

Technical User
Mar 20, 2007
96
US
I have a date field that lists all our volunteer’s birthdays. I need to sort/list them by month and exclude the day and year. I’m looking to get a list of all January birthdays, February birthdays…and so on. The format in this field is 01/08/1930. If I create an expression to extract just the first two characters I.e. Left([Field1],2) I will get “1/” as it excludes the zero.

Would anyone have any suggestions?

Bill6868
 

[tt]MsgBox Month(CDate("12/12/2012"))[/tt]

Have fun.

---- Andy
 
Thanks Andy and Duane. The query expression Month ([YourFieldNameHere]) gave me the months in a number (1 through 12). From there I was able to proceed.

Much appreciated!

Bill6868
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top