Gasman
Enthusiastic Amateur
- Local time
- Today, 19:30
- Joined
- Sep 21, 2011
- Messages
- 17,498
Hi everyone,
I was browsing the site and came upon this thread http://www.access-programmers.co.uk/forums/showthread.php?t=287953&page=2
I downloaded the database from http://www.utteraccess.com/forum/index.php?showtopic=2001188 and feel I could use this for our holiday planning in work.
However I would like to show the remaining holidays in place of the dept data. This I feel I can do easy enough by subtracting days used from a value in the employee table, but am struggling on how to get the days used. Each record holds a startdate and enddate of the holiday. I know I would need to use Datediff +1 to get the number of holiday days for each record (and might have a problem if weekend days are selected in error?), but not sure how to 'link' the used totals value to the holiday form?
Would someone be able to point me in the right direction please?
It would not be a large database. 20 or 30 employees at the most, so no problem with number of controls, or possibly speed.
TIA
I was browsing the site and came upon this thread http://www.access-programmers.co.uk/forums/showthread.php?t=287953&page=2
I downloaded the database from http://www.utteraccess.com/forum/index.php?showtopic=2001188 and feel I could use this for our holiday planning in work.
However I would like to show the remaining holidays in place of the dept data. This I feel I can do easy enough by subtracting days used from a value in the employee table, but am struggling on how to get the days used. Each record holds a startdate and enddate of the holiday. I know I would need to use Datediff +1 to get the number of holiday days for each record (and might have a problem if weekend days are selected in error?), but not sure how to 'link' the used totals value to the holiday form?
Would someone be able to point me in the right direction please?
It would not be a large database. 20 or 30 employees at the most, so no problem with number of controls, or possibly speed.
TIA