Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How make report sort by month name in logical order, not alphabetically

Posted on 2014-02-12
4
Medium Priority
?
2,782 Views
Last Modified: 2014-02-12
I have a report that has two groupings.  Group by FullName (which is employee name), and then by Date Worked.  But date worked is formatted like:

=Format([DateWorked],"mmmm")

in the control source.  By doing this it prints, for example, "January" if the date worked was 1/13/2014.

But then because it is grouped by Date Worked (which is therefore alphabetical), the months don't appear in calendar order.  They appear alphabetically which isn't what we want.

How can I make the results print in calendar order?

--Steve
0
Comment
Question by:SteveL13
  • 3
4 Comments
 
LVL 52

Accepted Solution

by:
Gustav Brock earned 2000 total points
ID: 39853170
Use this:

=Format([DateWorked],"yyyymm")

/gustav
0
 
LVL 52

Expert Comment

by:Gustav Brock
ID: 39853173
And your original expression for the visible textbox.

/gustav
0
 

Author Closing Comment

by:SteveL13
ID: 39853187
Thanks as always.
0
 
LVL 52

Expert Comment

by:Gustav Brock
ID: 39853196
You are welcome!

/gustav
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question