Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / June 2006

Tip: Looking for answers? Try searching our database.

Summary Query - grouping by Month

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay - 30 Jun 2006 22:32 GMT
Hi,

I have a table containing a date/time field.  I have a summary query based
on this table which was set up using the wizard.  I stipulated to group by
month when asked. (i.e. All records in April 2005)

The query works fine.  However when I try and sort on the month field it
sorts based on the letter beginning the month i.e.

April 2005
February 2005
June 2005
May 2005

I want to output the query results in a report, which I will need in
ascending date order, not Date alpha order.

I don't know why it does this as the original date field is definitely a
date type & format etc.

Any help would be greatly appreciated.

-Jay-
KARL DEWEY - 30 Jun 2006 22:54 GMT
Just answered in another group --

Open the query in design view and insert a column to the left of your present
Month-Year column.  Use  Format([YourDateField],"yyyymm") and uncheck the box
for display.  It will be sorted correctly.

> Hi,
>
[quoted text clipped - 19 lines]
>
> -Jay-
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.