Results 1 to 4 of 4
  1. #1
    vicsaccess's Avatar
    vicsaccess is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    451

    scheduling by week

    ok i have a database for maintenance and asset management. once a week we sit down and look at the work that we would like to schedule for the next week. i would like to be able to group the work by week for a few reasons such as being able to look at a particular weeks work and see how we did and also for the maintenance tech to be able to adjust his view to only see the week that his is working on and complete that before moving on to another week. so far my research has pointed to using the datepart("ww",date()) which works great for everything but being able to view it historicly since not everyone can determine that the 43rd week is this monday to this friday. is there a better way of doing what i am after or since i like having the week number that this provides how can i convert a week number that is stored to a monday thru friday view for the persons using the database? any suggestions?

  2. #2
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    have you looked at using format to get the date the way you want

    for example

    format(Date,"\W\k ww dddd, mmmm dd, yyyy")

    will produce

    Wk 5 Monday, January 25, 2016

  3. #3
    vicsaccess's Avatar
    vicsaccess is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    451
    can this be used to convert a week number to a first monday of the week? i like the idea of using the week number for simplicity but not sure if it can be reversed to show a date range of monday to friday.

  4. #4
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    in principle yes - google the use of the weekday and datediff functions, Weekday tells you what day of the week is (1 is sunday, 2 is Monday etc, although you can changed that) so if today is Wednesday (which is 4) Monday would be

    datediff("d",weekday(date())-2,date())

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 26
    Last Post: 11-05-2015, 01:58 PM
  2. Replies: 9
    Last Post: 06-19-2015, 03:37 PM
  3. Replies: 1
    Last Post: 01-28-2015, 12:19 PM
  4. Replies: 3
    Last Post: 09-19-2013, 10:18 AM
  5. Start a report on week 40 of a week count
    By aspitalnick in forum Reports
    Replies: 8
    Last Post: 11-28-2012, 04:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums