danielw.au
Registered User.
- Local time
- Today, 10:03
- Joined
- Mar 12, 2014
- Messages
- 10
Hi Everyone,
I have a database used to calculate the payout figure to employees when they leave our company. In this database I have the Hire Date and Separation Date.
In some cases we have to pay out Long Service leave and we need to break this down into three buckets.
1. Pre 16/08/1978.
2. Between 16/08/1978 and 17/08/1993
3. Post 17/08/1993
In a query, I need three expressions to calculate the total number of days for each bucket. For example, if the employee started on 01/01/1970 and finished on 23/04/2014, I would need total number of days for each group as follows:
1. 01/01/1970 to 15/08/1978.
2. 16/08/1978 to 17/08/1993.
3. 18/08/1993 to 23/04/2014.
For the life of my, I'm struggling to write this as an expression in a query.:banghead:
Any assistance would be greatly appreciated.
Kind Regards
Daniel
I have a database used to calculate the payout figure to employees when they leave our company. In this database I have the Hire Date and Separation Date.
In some cases we have to pay out Long Service leave and we need to break this down into three buckets.
1. Pre 16/08/1978.
2. Between 16/08/1978 and 17/08/1993
3. Post 17/08/1993
In a query, I need three expressions to calculate the total number of days for each bucket. For example, if the employee started on 01/01/1970 and finished on 23/04/2014, I would need total number of days for each group as follows:
1. 01/01/1970 to 15/08/1978.
2. 16/08/1978 to 17/08/1993.
3. 18/08/1993 to 23/04/2014.
For the life of my, I'm struggling to write this as an expression in a query.:banghead:
Any assistance would be greatly appreciated.
Kind Regards
Daniel