A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

End of service calculation



 
 
Thread Tools Display Modes
  #1  
Old May 24th, 2010, 11:21 AM posted to microsoft.public.access.forms
Tia[_3_]
external usenet poster
 
Posts: 126
Default End of service calculation

what i have is an employee database and i want to apply the following
rules :
Employee Name
Total Package
Total Per Day
Additional days
Total Working Months
Total Working years
Type :Termination/resignation

If the employee is resigning before the completion of 1 year of
service :
He will be getting as benefits total working days -45 days of deduction
+ additional days


If the employee is being terminated before the completion of 6 month
He will get total working days+ additional days


If the employee is being terminated after the completion of 6 month
he will get 1 month salary + additional days
  #2  
Old May 24th, 2010, 09:14 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default End of service calculation

You need to try working with Datediff. Datediff works like this:
Datediff(["m", [Yourfirstfield],[yoursecondfield])
You can also add or subtract months (the "m" is for months, you can also do
"d" for days)
So Datediff("m",[firstfield],[secondfield] +7)
Experiment with that and see if you get the results you want.
--
Milton Purdy
ACCESS
State of Arkansas


"Tia" wrote:

what i have is an employee database and i want to apply the following
rules :
Employee Name
Total Package
Total Per Day
Additional days
Total Working Months
Total Working years
Type :Termination/resignation

If the employee is resigning before the completion of 1 year of
service :
He will be getting as benefits total working days -45 days of deduction
+ additional days


If the employee is being terminated before the completion of 6 month
He will get total working days+ additional days


If the employee is being terminated after the completion of 6 month
he will get 1 month salary + additional days
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.