INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Sorting by Month Only, Not Month and Year in a Report.

Sorting by Month Only, Not Month and Year in a Report.

(OP)
Hello Access Geniuses.

I've searched the site and other place for a solution.

I have a database were I can create a report for just names and birth MONTHS.

I can easily get it to sort by MONTH, but its sorts by Month, then Year. I need to have all of a month's detail items grouped together regardless of the year. Specifically, this for birthdays.

For the section header I get =Format$([Birthdate],"mmmm yyyy",0,0)
This gives me MONTH, YEAR

If I change it to =Format$([Birthdate],"mmmm")
just the month is display, but it still sorted by month, then year, (i.e. I'd have multiple Januarys because of birthdays being is different years).

Also, in my query, I have a field that will convert the Birthdate to a month number. Then when creating the report using the Month Number, instead of the Birthdate, I just get numbers.

Any ideas? Thanks.

RE: Sorting by Month Only, Not Month and Year in a Report.

You should be able to sort on the expression:
=Month([Birthdate])

Duane
Hook'D on Access
MS Access MVP

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close