Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jan 2002
    Posts
    1,615
    Thanks
    0
    Thanked 1 Time in 1 Post

    Finding Friday in a week (2002)

    Hi,

    I have a query that has field [Care_date] in it. I need to be able to find the [week_ending_date] for each care date. The user's week ending date is always a Friday. I've tried everything you can think of and then some and I've read a bunch of posts but I'm simply not getting it. Is there a way to do this in a query?

    Thanks,
    Leesha

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Finding Friday in a week (2002)

    Try

    Week_ending_date: [Care_date]+6-Weekday([Care_date])

    Check carefully whether it returns the correct Friday for all possible Care_dates.

  3. #3
    Silver Lounger
    Join Date
    Jan 2002
    Posts
    1,615
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Finding Friday in a week (2002)

    OMG Hans! That is great. If you only knew how many attempts I made at that and things I tried you'd cry with laughter!

    Thanks!
    Leesha

Posting Permissions

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