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 / October 2007

Tip: Looking for answers? Try searching our database.

Formatting date to week

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shiro - 30 Oct 2007 08:09 GMT
Hi All,
I'm trying to create a select query which have field date.
Now I want have a field which return the date value to
week format.How to create it.I want the week change
every monday at 7.30 am.How to make access achieve
it.Hope somebody like to help.
Jerry Whittle - 30 Oct 2007 14:47 GMT
If by "week format" you mean the number of the week, something like below
will work somewhat:

 TheWeekNumber: DatePart("ww", [TheDateField], vbMonday)

It does not take into account your need for it starting at 7:30am. If the
date field has a time element, something like this may meet your needs:

 TheWeekNumber: DatePart("ww", [TheDateField] - 0.3125, vbMonday)
Signature

Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

> Hi All,
> I'm trying to create a select query which have field date.
> Now I want have a field which return the date value to
> week format.How to create it.I want the week change
> every monday at 7.30 am.How to make access achieve
> it.Hope somebody like to help.
shiro - 31 Oct 2007 03:39 GMT
Dear Jerry,
more explanation please.Can't we build it by using
exspression builder.Coding is terrible for me.

> If by "week format" you mean the number of the week, something like below
> will work somewhat:
[quoted text clipped - 15 lines]
> > every monday at 7.30 am.How to make access achieve
> > it.Hope somebody like to help.
 
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.