Results 1 to 2 of 2
  1. #1
    hazeleyre23 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Mar 2016
    Posts
    34

    How to get the name of a date in Access VBA

    Hi,



    I want to be able to get the name of a date in Access.

    I have a control called Date Chased and If that is a Thursday then I want to add 4 days onto Date Chased Second control , else 2.

    Thanks

    Hazel

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    use the weekday function to determine the day of the week

    1=Sunday
    2=Monday
    etc

    so your formula would be something like

    datechased2=datechased+2-(weekday(datechased)=5*2)

    what about Friday?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. how to use present date as start date in access?
    By benzylamine in forum Queries
    Replies: 6
    Last Post: 05-29-2015, 10:34 AM
  2. Replies: 2
    Last Post: 08-10-2012, 12:28 AM
  3. Replies: 12
    Last Post: 04-26-2012, 04:01 AM
  4. Replies: 2
    Last Post: 03-31-2012, 07:53 AM
  5. Access Date/Time....I need a "generic" date.
    By beastmaster in forum Access
    Replies: 2
    Last Post: 12-29-2005, 12:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums