VACHOURS.MDB contains the function VacHours, which you can use in your own
applications by copying the one module (VacHours) and the two tables 
(Holidays & PlanStart) into your own app. This application is based 
upon an ACCESS ver 1.1 function written by Ken Getz and I would like 
to thank Ken for the excellent start. 

The test form also incorporates a nice calendar function for date entry!
Take a look and make any improvements that you can!

To use it, call it like:

    numberhours = VacHours(StartDate, EndDate, PlanDate, Schedule)

Where StartDate is the starting date of the vacation.
EndDate is the ending date of the vacation.
PlanDate is the first scheduled Friday off for a 9/80 work schedule.
Schedule is the type of work of work schedule 
	1 = Plan A, 8, 8 hour days and 1, 9 hour day each two week cycle
	2 = Plan B, 8, 8 hour days and 1, 9 hour day each two week cycle
	3 = Plan C, normal 5, 8 hour days a week

Vachours calculates the number of BUSINESS hours between two dates,
assuming that if you pass in the same date for the start and end dates,
you'll get a return value of 8 or 9 depending upon the work schedule.
VacHours first figures out how many WEEKdays are included in the range of 
dates you specified, and then counts the number of Holidays are in the 
same range, given the Holidays table which lists all the holidays you 
might care about. Then it takes into account an alternative work schedule 
called 9/80 used at my location

This function is supplied as FREE ware.  Please use it as you wish, and
distribute it freely.  If this saves you some time and you feel the urge,
please contribute some funds to your favorite charity in my name.  I'd
appreciate that.

Any comments/suggestions?  Let me know...

Ken Getz
KNG Consulting
76137,3650

If you would like any applications written for your database please, 
feel free drop me a line so we can discuss your application.

Scott Riley
72672,206

