How to get the date of the next coming Monday?

Hello, everyone here!

I need to set up a routine followup schedule in my Access 2003 database. The start date of a subject is the first Monday after being enrolled. So I am wondering if there is a simple way (like a function or something) to request the date of the first coming Monday.

Thanks a lot for any suggestion!

lunaa


Answer this question

How to get the date of the next coming Monday?

  • AndrewVos

    Thank you so much, ADG!

    I will plant your codes in my database~

    lunaa

  • Shaiq Bashir

    Hi Lunaa

    Add the following into a module, then you can access the function as required.

    Public Function NextMonday(MyDate As Date) As Date
    Dim x As Long
    x = Weekday(MyDate)
    If x >= 2 Then
    NextMonday = MyDate + 9 - x
    Else
    NextMonday = MyDate + 1
    End If
    End Function


  • How to get the date of the next coming Monday?