Results 1 to 2 of 2

Thread: Find Dates in the same week

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    US
    Posts
    1

    Post

    How do I write a procedure that find all the dates in a field from a table in a Access database that are the same week as today's date, or a selected date. Format is dd/mm/yy.
    Please help, Thanks a million



  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    82

    Post

    i am no vb expert and i'm sure that there is an easier way to do this.

    'compare return values of
    'ww = week of year
    datepart("ww", now) = datepart("ww", entry in database)

    'you may also want to compare the year
    datepart("yyyy", now) = datepart("yyyy", entry in database)

    again, i am no expert but i hope this helps

Posting Permissions

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



Click Here to Expand Forum to Full Width