Results 1 to 5 of 5
  1. #1
    Lounger
    Join Date
    Sep 2004
    Location
    Louisville, Kentucky, USA
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Weeknum Function (2000)

    Can you use a "weeknum" function in access as there is in excel to return the week number of a date? I am trying to limit a query to the current work week.

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Weeknum Function (2000)

    You can use the format function:
    Format([YourDate],"ww")
    Francois

  3. #3
    Lounger
    Join Date
    Sep 2004
    Location
    Louisville, Kentucky, USA
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Weeknum Function (2000)

    Thanks Hans!

  4. #4
    Lounger
    Join Date
    Sep 2004
    Location
    Louisville, Kentucky, USA
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Weeknum Function (2000)

    Sorry Francois, I was reading another post from Hans. Thank you Francois!

  5. #5
    New Lounger
    Join Date
    Dec 2005
    Location
    Beechworth, Victoria, Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='Francois' post='529584' date='28-Oct-2005 04:14']You can use the format function:
    Format([YourDate],"ww")[/quote]

    See BUG: Format or DatePart Functions Can Return Wrong Week Number for Last Monday in Year.
    For background info, see Week Numbering Systems.
    Garry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •