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 / July 2006

Tip: Looking for answers? Try searching our database.

Sorting date field ny day and month

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robin Chapple - 05 Jul 2006 13:11 GMT
I have a membership database which records date of joining.

I need to mention anniversaries in a weekly bulletin and therefore
need to sort my report by day and month.

How do I do that? I do not know where to start.

Thanks,

Robin Chapple
Douglas J Steele - 05 Jul 2006 13:51 GMT
Simplest way would be to base your report on a query, and have one (or two)
computed fields in that query in addition to whatever other fields you need.

If you go the one-field route, use Format([AnniversaryDate], "mmdd"). For
the two-field route, use Month([AnniversaryDate]) and
Day([AnniversaryDate]).

In the report, select the computed field(s) in the Sorting and Grouping
dialog to have your report sort correctly.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> I have a membership database which records date of joining.
>
[quoted text clipped - 6 lines]
>
> Robin Chapple
Robin Chapple - 06 Jul 2006 00:51 GMT
Thanks Doug,

The two field option is ideal.

Many Thanks,

Robin Chapple

>Simplest way would be to base your report on a query, and have one (or two)
>computed fields in that query in addition to whatever other fields you need.
[quoted text clipped - 5 lines]
>In the report, select the computed field(s) in the Sorting and Grouping
>dialog to have your report sort correctly.
 
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.