Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Access database/Producing a message when the weekday turns to Friday  (Read 3707 times)

0 Members and 1 Guest are viewing this topic.

catz

    Topic Starter


    Rookie
  • I love YaBB 1G - SP1!
    I'm looking for Code that will allow me to program a command button whose function is to close the database to produce the message "Happy Friday and have a nice weekend"  -  only, of course, when the weekday becomes Friday.

    Any help will be appreciated.

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: Access database/Producing a message when the weekday turns to Friday
    « Reply #1 on: April 04, 2008, 01:28:45 PM »
    Something like this may help:

    Code: [Select]
    if weekday(now) = vbFriday then msgbox("Happy Friday and have a nice weekend")

    Use the code in the button click event along with the code to close the database.

     8)

    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    catz

      Topic Starter


      Rookie
    • I love YaBB 1G - SP1!
      Re: Access database/Producing a message when the weekday turns to Friday
      « Reply #2 on: April 04, 2008, 05:14:30 PM »
      Thanks Sidewinder - your suggestion works perfectly!!!