473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Vacation Time Off Accrual in MS Access 2010

Hello,

Really sorry not to bring a code, but really I do not have any idea on how to start this calculations, if you can teach me on how to do it to learn I will appreciate it. This are the requirements for each country:

UK:

Base leave = 22 days when start a job
For first 3yrs add 1 day per year till Max 25 days

Year runs January to December


France:

The annual leave is 25 days (regardless of tenure or position)

Year run from 01 JUN - 31 MAY (the following year)


Cost Rica:

Accrue 1 day per month until your 5 year anniversary, for which you get two extra days each year until you have your 8th year anniversary, then you will get 3 days each year until you have your 10th anniversary for which you will have 4 extra days per year and it stops there.

At the end of each year you cannot have more than 24 days accrued.

Year Days Per Year
1 12
2 12
3 12
4 12
5 14
6 14
7 14
8 15
9 15
10 16
11 16

You max out at 16 days per year starting your 10 year anniversary
Leave can also be carried over till MAX of 24days per year.

Year runs January to December.

Calculation for above:
1. 1-4yrs = 12 days (1day/year)
2. 5-7yrs add 2 days to base of 12 = 14days
3. 8-9yrs add 3 days to base of 12 = 15days
4. 10yr > add 4 days to base of 12 = 16days max
Mar 21 '18 #1

✓ answered by twinnyfo

ivon,

My initial thoughts are that you may have much of what you need already, but not in a usable form. You may be able to create a table that simply lists all the potential situations:

tblLeaveCalc
Expand|Select|Wrap|Line Numbers
  1. Country    YOS*  LvDays
  2. UK            1      22
  3. UK            2      23
  4. UK            3      24
  5. UK          100      25
  6. France      100      25
  7. Costa Rica    5      12
  8. Costa Rica    8      14
  9. Costa Rica   10      15
  10. Costa Rica  100      16
  11.  
  12. *Years of Service
Then, to determine how much leave an employee earns, simply determine how many years of service the employee has and which country they work in. Then, find the number of days of leave if the employee's years of service is less than the Table's YOS. Notice the values of 100, which implies that the employee will not have worked there more than 100 years, but if they have worked for 15 years, they will earn that amount of leave per year.

This does not take into account when the employee receives their leave alottment, that is, do they receive a full amount on their anniversary date, on the beginning of the calendar year, etc. But those are things outside the immediate scope of your question.

Hope this hepps and can put you in the right direction.

6 1533
twinnyfo
3,653 Expert Mod 2GB
ivonsurf123,

We would love to help you, but you will have to provide at least a little more for us to go on. Are these calculations for a report? To be saved in a Table? To be added to an employee's record?

I think the calculations themselves are manageable enough, but we don't know how you plan to implement any calculations, so we don't know where to start.

Thank you. Hope we can hepp!
Mar 21 '18 #2
Hello Twinnyfo,

The calculations is to create a table where the data will be save, but also a form to introduce some data like employee name and ID, start date to start calculating first on how many days of vacation that employee will be starting with and depends in the country adding 1 day per year or for CostaRica if you see is different, you will have 12 days per year for the first 4 years and after that it will be raised 2 days for another 3 years (2 days per year) and in year 15 it will be raised ( 1 day) until get to the Max which is 16 days per year.
Really sorry that I do not have a clue how to start these calculations and not to provide a starting code, if I can get help to teach me how to, that will be awesome!
Mar 21 '18 #3
twinnyfo
3,653 Expert Mod 2GB
ivon,

My initial thoughts are that you may have much of what you need already, but not in a usable form. You may be able to create a table that simply lists all the potential situations:

tblLeaveCalc
Expand|Select|Wrap|Line Numbers
  1. Country    YOS*  LvDays
  2. UK            1      22
  3. UK            2      23
  4. UK            3      24
  5. UK          100      25
  6. France      100      25
  7. Costa Rica    5      12
  8. Costa Rica    8      14
  9. Costa Rica   10      15
  10. Costa Rica  100      16
  11.  
  12. *Years of Service
Then, to determine how much leave an employee earns, simply determine how many years of service the employee has and which country they work in. Then, find the number of days of leave if the employee's years of service is less than the Table's YOS. Notice the values of 100, which implies that the employee will not have worked there more than 100 years, but if they have worked for 15 years, they will earn that amount of leave per year.

This does not take into account when the employee receives their leave alottment, that is, do they receive a full amount on their anniversary date, on the beginning of the calendar year, etc. But those are things outside the immediate scope of your question.

Hope this hepps and can put you in the right direction.
Mar 22 '18 #4
Hello twinnyfo,

Thank you so much! That's a start I will continue from here.

Cheers!
Mar 22 '18 #5
twinnyfo
3,653 Expert Mod 2GB
My pleasure. Let us know if there are additional advancements/questions.
Mar 22 '18 #6
For Sure, I will if I have more questions and post the final result as well. Thank you.
Mar 22 '18 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: jaad | last post by:
Hello, I have a database that was written in access 2007 on my pc. I wanted to work off site with the database so I uploaded it onto my laptop which is loaded with access 2010 beta. When I...
1
by: Alan Yim | last post by:
Hi folks, My company recently upgraded our Office suite from 2003 to 2010. The problem in particular is with an Access database that was originally designed in Access 2003. The code in question...
5
by: neelsfer | last post by:
I got a new work laptop last week with Access 2010 pre-loaded.I also installed the new Office 2010 service pack 1. I then loaded 2 of my regularly used Access 2007 + service pack 2 applications on...
4
by: jbrumbau | last post by:
Hello, In Access 2010/2007, how do you prevent users from flipping into design view from the ribbon? I do not want to hide the entire ribbon (DoCmd.ShowToolbar "Ribbon", acToolbarNo) or even the...
4
beacon
by: beacon | last post by:
Hi everybody, My title may not exactly describe my issue, so please forgive my lack of creativity today. I've got a database that was created in Access 2003 that I've opened in Access 2010. I...
1
by: Sweeda | last post by:
Hi guys, as you read in the title, I've got problems with more than one record in a table: On opening the form that displays the field it appears the error 3197 "The Microsoft Jet database...
5
by: Katie Howard | last post by:
I have an Access 2010 database and am using the feature of collecting data by email. I’m using the InfoPath form as the means of collecting the data. In general, it works well – but I’ve run into 2...
2
by: tdumas | last post by:
I am doing a database for vacation time. And we have special circumstances for new hires where they get vacation time but then have to wait until their anniversary date equals the time line to...
2
by: CLSkcab | last post by:
Background: Front End: MS Access 2010/VBA, Back End: MS SQL Server 2008 Can an Access 2010 program start another Access 2010 program and pass data to the one it starts? Thanks in advance.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.