Share via

Date format using Query Wizard group

Anonymous
2012-03-13T16:57:26+00:00

I created a query with the query wizard and selected to group the data by month.  The query does display the monthly totals but the months are displayed in the "mmmm, yyy" format.         Month: Format$([q-AllOrders-002].[Entry-Date],'mmmm yyyy')

With the months identified in this format, they do not sort in the order I need.  January, February, March, April.....  Instead I get April 2010, April 2011, February 2010, February 2011.....

Is there a way I can have the months display in a format such as 2010 01, 2010 02, 2011 01, 2011 02?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2012-03-13T17:54:50+00:00

Try 'yyyy mm' or 'yyyymm' as format string.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2012-03-13T18:03:04+00:00

    Perfect - Thanks!  "yyyy mm" give me exactly what I need by putting the date in the format:  2011 01, 2011 02...  Makes sorting the months much easier!

    Was this answer helpful?

    0 comments No comments