Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Apr 2002
    Location
    Burlington, Washington, USA
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Weekday (Access 2000)

    I need to calculation that will return the first Monday of each month in a query with a start date of 1/3/05. Any help would be appreciated.

    Thank you,
    Larry

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

    Re: Weekday (Access 2000)

    You'll need something to start with, such as a table containing the numbers of the month (1..12). You can then use the functions from <post#=425,188>post 425,188</post: >.
    Say that you have a number field MonthNum. The first Monday in the month is:

    DayInMonth(2005, [MonthNum], 2, 1)

    or if you always want the current year (now 2005, next year 2006 etc.):

    DayInMonth(Year(Date()), [MonthNum], 2, 1)

Posting Permissions

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