Results 1 to 4 of 4
  1. #1
    DC CS is offline Advanced Beginner
    Windows 11 Office 365
    Join Date
    Jan 2023
    Location
    Vaalpark, South Africa
    Posts
    84

    Last working day

    Good day all,
    I am trying to determine the last working day of a specific month. I found some samples on the web, but it is not what I am looking for.



    I need to determine the last working (or weekday) day of the month. If I create for example a document on the 5th of January 2023, I need to determine that Tuesday, 31 Jan is the last working day.
    If the document were created on 3 April 2023, the last working day (or weekday) would be Friday the 28th of April. That date must then appear on the document as the "Due Date".

    Your help is appreciated.

    Thanks
    Deon

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,158
    You can use a Variety of functions to do this how ever the easiest is to determine the first of the next month then subtract days until you hit a working day.

    Google provided a few hits - this looks promising:
    https://www.access-programmers.co.uk...-month.140623/
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    DC CS is offline Advanced Beginner
    Windows 11 Office 365
    Join Date
    Jan 2023
    Location
    Vaalpark, South Africa
    Posts
    84
    Thanks, Minty - solved the issue.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,566
    Quote Originally Posted by DC CS View Post
    Thanks, Minty - solved the issue.
    Well as these forums are here to help people, care to post your solution?

    It might help others after all?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 4
    Last Post: 01-27-2020, 09:49 AM
  2. Replies: 2
    Last Post: 05-14-2017, 10:07 AM
  3. Working query stops working after importing
    By Abacus1234 in forum Import/Export Data
    Replies: 3
    Last Post: 10-25-2015, 09:12 PM
  4. Replies: 1
    Last Post: 12-27-2014, 12:38 PM
  5. Replies: 3
    Last Post: 01-29-2013, 04:34 AM

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