AnthonyDixon Posted August 25, 2012 Posted August 25, 2012 I have an employee table with an employee leave child table which contains a date field and an hours taken field. My employee table contains a field that determines the allotted hours allowed to be taken each year. I am currently calculating the total time taken for the current year and displaying the remaining balance left for the year. What I'm trying to calculate is the balance of time not taken for all previous years. I'm just not sure how to how to arrive at the time not taken totals for each year. Thank you in advance for any help. Tony 11 Advanced Mac/PC Employee Leave.fp7.zip
comment Posted August 25, 2012 Posted August 25, 2012 it seems that the number of hours allowed per year is specific to an employee - but doesn't it ever change from year to year? Note also that your file doesn't tell us in which years an employee was employed; if John Doe doesn't have any leaves in 2009, it could be because he didn't take any (and in such case he has a balance of 40 hours), or because he started working in 2010 only.
AnthonyDixon Posted August 25, 2012 Author Posted August 25, 2012 Yes, there will be a field for date of hire and the hours allowed per year may change from year to year. oh boy I guess now I have really complicated things.
comment Posted August 26, 2012 Posted August 26, 2012 I think the opposite is the truth: things are more complicated than you have made them seem. How about a somewhat different approach? LeavesByYear.fp7.zip
AnthonyDixon Posted August 26, 2012 Author Posted August 26, 2012 What a great approach! This changes everything for the better. Thank you so much. Tony
Recommended Posts
This topic is 4530 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now