• Event occur on specific weekday (Access 2002, Win 2nd E)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Event occur on specific weekday (Access 2002, Win 2nd E)

    Author
    Topic
    #362615

    I need a message to be displayed when a form is closed, but only on Friday. How do I set the message only to be displayed on Fridays?

    Thanks for any help. Fay

    Viewing 0 reply threads
    Author
    Replies
    • #551092

      Something like this will work in the Close event of the form:

        If Weekday(Date) = vbFriday Then
          MsgBox "It's Friday!"
        End If
      • #551115

        Thanks Charlotte. I had everything right EXCEPT the (Date). Plugged it in and like magic it worked. Thanks again. Fay

    Viewing 0 reply threads
    Reply To: Event occur on specific weekday (Access 2002, Win 2nd E)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: