Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    NJ, USA
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    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

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

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

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

    <pre> If Weekday(Date) = vbFriday Then
    MsgBox "It's Friday!"
    End If</pre>

    Charlotte

  3. #3
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    NJ, USA
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

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

Posting Permissions

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