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 / Modules / DAO / VBA / March 2005

Tip: Looking for answers? Try searching our database.

last Friday of each month (group on)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Linda Brown - 18 Mar 2005 20:41 GMT
Using Access 2000, I have a report based on a query/table with a date field.  
I would like my report to group on the last Friday of each month.  Any ideas
on what kind of formula I could use for that?  Thanks.
Ken Snell [MVP] - 18 Mar 2005 21:08 GMT
The following expression will return the date of the last Friday of the
month in which the MyDate is (for example, if MyDate is March 18, 2005, then
the expression returns March 25, 2005 as the last Friday of the month of
March 2005):

DateAdd("d",1-DatePart("w",DateSerial(Year(MyDate),Month(MyDate)+1,0),6),DateSerial(Year(MyDate),Month(MyDate)+1,0))

Signature

       Ken Snell
<MS ACCESS MVP>

> Using Access 2000, I have a report based on a query/table with a date
> field.
> I would like my report to group on the last Friday of each month.  Any
> ideas
> on what kind of formula I could use for that?  Thanks.
 
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.