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 / Queries / December 2005

Tip: Looking for answers? Try searching our database.

Current Week

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scott - 01 Dec 2005 14:10 GMT
How do I select all the days in the current week from a date field?  I want
to view all the employees hired in the current week using the hire date.  I
do not want to enter the beginning and ending date of the week each time; I
want the query to look at todays date, look at what the week of the year
todays date is and then include all the hire dates that are included in the
current week.

Thanks,

Scott
OfficeDev18 - 01 Dec 2005 14:25 GMT
The Weekday() function returns the numerical day of the week. Hence, on any
day you can get back to Sunday by saying Date() - Weekday(Date()) + 1. That
is: Today - the weekday function (which will return you to last Saturday) + 1
(to advance to Sunday).

HTH

>How do I select all the days in the current week from a date field?  I want
>to view all the employees hired in the current week using the hire date.  I
[quoted text clipped - 6 lines]
>
>Scott

Signature

Sam

Scott - 01 Dec 2005 15:15 GMT
That's cool, thank you!

> The Weekday() function returns the numerical day of the week. Hence, on any
> day you can get back to Sunday by saying Date() - Weekday(Date()) + 1. That
[quoted text clipped - 13 lines]
> >
> >Scott
 
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.