Results 1 to 2 of 2
  1. #1
    Thelaxman is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Posts
    3

    1st or 3rd Wednesday 90 days out.


    Sorry if something like this has been asked before, haven't seen any answers. I am working on a database with a query needed to show a date to review files. The date would be 90 days out taking place on the last 1st or 3rd Wednesday of the month within that 90 day period.

    Thanks for any help!

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    don't have time to provide an exact solution but the basic components are

    dateadd("d",90,Date()) gives you 90 days out

    day(dateadd("d",90,Date())) gives you the day of the month 90 days out

    weekday(dateadd("d",90,Date())) gives you the day of the week - 1=Sunday, 2=Monday, etc - Wednesday=4

    so by seeing what day you have and what weekday that is, you can work backwards to find the first or 3rd Wednesday

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

Similar Threads

  1. Replies: 2
    Last Post: 04-10-2015, 03:51 AM
  2. Replies: 1
    Last Post: 03-27-2014, 06:43 PM
  3. Replies: 4
    Last Post: 09-17-2012, 02:15 PM
  4. Select Dates between days and two days ago?
    By rstonehouse in forum Queries
    Replies: 4
    Last Post: 08-18-2010, 02:13 AM
  5. less than 180 days old
    By techexpressinc in forum Queries
    Replies: 2
    Last Post: 06-04-2009, 04:29 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