Hi,
You also have some business logic questions to answer.
When do you calculate the vacation time?
First of year?
Then what do you do about someon hired in march of last year?
Is it prorated?
On anaversery date?
Have to make sure that it is calculated at that time.
And/or Do you accumulate vacation time prior to the aniversery date?
After the first 6 months you get 20 hours to use for the rest of the
(what time period)
etc...
I would use a table that defined the basics
tblVacationHours
Years HoursAvail
1 40
5 80
10 120
99 160
Then depending on your buiness logic you need to calculate the
difference (ie =DateDiff("yyyy",#12/1/1993#,Now()) - this rounds up to the
next year - 13 years) and compare it to the table.
--
Craig Hornish
Visit weekly Access conferences
Tuesday, 11:00am-12:30pm (Eastern US)
Thursday, 3:30pm- 5:00pm (Eastern US)
http://community.compuserve.com/n/pfx/forum.aspx?webtag=ws-msdevapps
"Think outside the box, because anything is possible."
"How long it will take or whether it requires divine intervention is another
issue"