Sort Month and Sort Day

G

Guest

Hi,
If i remember right, I need to take advantage of the Expression function of
the queries to Sort by month and day and do it in seperate fields? The HR
person has a table employees and it has their birthday (mm/dd/yyyy) and I
can't remember how to do this query? If i do it in ascending order w/ out
sorting my month and day 12/31/1981 will come before 1/1/2000 and i don't
look at the year. Thanks
 
R

Rick B

You can put the month in one field using BirthMonth:
DatePart("m",[birthdate])
uncheck the display box (since it is only for sorting)

In the next field you can put the day as BirthDay:
DatePart("d",[birthdate])

Hope that helps,
Rick B
 

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

Similar Threads


Top