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

Tip: Looking for answers? Try searching our database.

Current week

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tom - 19 Jul 2006 20:52 GMT
Hi,

Date() present today's date.
How do I present today's week (which week between 1 and 52)?

TIA,

   Tom
Jerry Whittle - 19 Jul 2006 21:28 GMT
DatePart("ww",Date())
Signature

Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

> Hi,
>
[quoted text clipped - 4 lines]
>
>     Tom
fredg - 19 Jul 2006 21:30 GMT
> Hi,
>
[quoted text clipped - 4 lines]
>
>     Tom

Look up the DatePart function in VBA help.

DatePart("ww",Date())

Also note that the DatePart function hsa various arguments to set the
first week of the year as well as the first day of the week. January
1st and Sunday are the defaults.

Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Ron - 20 Jul 2006 04:43 GMT
Thanks for the tip, It supposed to be it, but instead of the week number I
get 1/29/1900.
Any ideas?

Thanks,
  Tom

>> Hi,
>>
[quoted text clipped - 12 lines]
> first week of the year as well as the first day of the week. January
> 1st and Sunday are the defaults.
John Spencer - 20 Jul 2006 12:49 GMT
That appears to be the conversion of the week number to a date.  Are you
formatting the results of the DatePart function to a date format?

> Thanks for the tip, It supposed to be it, but instead of the week number I
> get 1/29/1900.
[quoted text clipped - 19 lines]
>> first week of the year as well as the first day of the week. January
>> 1st and Sunday are the defaults.
 
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.