Results 1 to 9 of 9
  1. #1
    notrino is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Location
    Izmir,Turkey
    Posts
    60

    Workday Application

    Hello Friends,

    I attched my application file. I need to see "end date" value , "it must be depends on days+holidays+weekends etc". Can you help me aboutthis topic? Thanks. (Like workday application in Excel)
    Attached Files Attached Files

  2. #2
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    there is nothing in this file you attached but the table. Double clicking on the Tablo1 table in the navigation pane shows you all the data including end date.

  3. #3
    notrino is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Location
    Izmir,Turkey
    Posts
    60
    Hello,

    In this table, "end date" area must be "calculating area" from "start date+days. "days" mean any number. For example, I have to work 75 days. Start date can be 18.02.2016, end date must be calculate from 18.02.2016+75 days. But result must be shift weekends +national holidays..weekends and national holiday values can be take from PC calendar or any Access table. How can I do this application?

  4. #4
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    After you have some data in your tables, you will need to make a query.

    The functions you are describing are actually covered in access newer versions. Any Date can be converted to a number, the left hand portion of that number is the days, the right hand portion is the time. So CDate(#08/02/16#)+75 would give you 75 days next. There are even more functions to calculate work days. see below
    https://msdn.microsoft.com/en-us/lib...ffice.12).aspx

    pretty much everything i could explain is on that link

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Here are two sites with "workday" functions

    http://access.mvps.org/access/datetime/date0006.htm (use 2nd function -> WorkingDays2)
    https://msdn.microsoft.com/en-us/lib...ice.12%29.aspx

  6. #6
    notrino is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Location
    Izmir,Turkey
    Posts
    60

    WorkingDays

    Hello Friends,

    Thanks for your supports. But I didn't solve it, for my application. Please look at my attached file. Where is my mistake? I create Holiday table, I insert the code on my form etc.. But it is not working..
    Attached Files Attached Files

  7. #7
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    You need to fill out the Holiday table with your holiday dates.
    I moved the function to a standard module.
    I changed the form record source from a table to a query. The query is where the calculation is done.
    The work days is not stored because it can be calculated at any time.
    Attached Files Attached Files

  8. #8
    notrino is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2016
    Location
    Izmir,Turkey
    Posts
    60
    Hello ssanfu,

    Thanks for your answere. But this application is not working. Did you try it? Is it working on your PC? Error description is : "syntax error in date in expression"

  9. #9
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Yes it works for me.

    What is your date format? (mm/dd/yyyy or dd/mm/yyyy)

    See http://www.allenbrowne.com/ser-36.html
    Attached Files Attached Files

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

Similar Threads

  1. I need function like workday.intl in excel
    By brianpenner in forum Programming
    Replies: 1
    Last Post: 11-21-2015, 06:12 PM
  2. Replies: 1
    Last Post: 08-27-2015, 06:05 AM
  3. Replies: 4
    Last Post: 01-05-2014, 02:09 PM
  4. Replies: 2
    Last Post: 10-14-2013, 08:24 AM
  5. Replies: 0
    Last Post: 08-26-2008, 09:22 AM

Tags for this Thread

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