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 November 16th, 2009, 09:43 AM posted to microsoft.public.access.forms
Tia[_3_]
external usenet poster
 
Posts: 126
Default END OF SERVICE CALCULATION

Dear all,
i am sorry for disturbance, iam trying t move my data frm the excel
to access and i am having troubles with the formulas, i am trying to
calculate the total gratuity of the end of service i used to use this
formula
=IF(AND(K8="Termination",(Total working years)=1),TEXT(((Total
Package per day)*(Total working years)*21),"#,#00.00")&" + "&"Ticket",
IF(AND(K8="Resignation",(Total working years)=1,(Total working years)
=3),(Total Package per day)*(Total working years)*7,IF(AND
(K8="Resignation",(Total working years)3),
(Total Package per day)*(Total working years)*21,"Service is less than
1 year")))

K8= CAN BE RESIGNATION AND SOMETIMES TERMINATION

tHANK YOU IN ADVANCE
  #2  
Old November 16th, 2009, 01:56 PM posted to microsoft.public.access.forms
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default END OF SERVICE CALCULATION

On Mon, 16 Nov 2009 01:43:40 -0800 (PST), Tia
wrote:

It's hard to follow your expression, but it appears you want a few
nested IIF statements. Look it up in the help file. Build them up one
level at a time, e.g.
=iif(Me.K8="Termination", "some T stuff", "some R stuff")

-Tom.
Microsoft Access MVP



Dear all,
i am sorry for disturbance, iam trying t move my data frm the excel
to access and i am having troubles with the formulas, i am trying to
calculate the total gratuity of the end of service i used to use this
formula
=IF(AND(K8="Termination",(Total working years)=1),TEXT(((Total
Package per day)*(Total working years)*21),"#,#00.00")&" + "&"Ticket",
IF(AND(K8="Resignation",(Total working years)=1,(Total working years)
=3),(Total Package per day)*(Total working years)*7,IF(AND
(K8="Resignation",(Total working years)3),
(Total Package per day)*(Total working years)*21,"Service is less than
1 year")))

K8= CAN BE RESIGNATION AND SOMETIMES TERMINATION

tHANK YOU IN ADVANCE

  #3  
Old November 16th, 2009, 05:08 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default END OF SERVICE CALCULATION

When using multiple test in an IIF the AND goes betweem the test. Use
brackets to enclose field names.
Try this --
=IIF(K8="Termination" AND [Total working years]=1, Format([Total Package
per day]*[Total working years]*21,"#,#00.00") &" + Ticket",
IIF(K8="Resignation" AND[Total working years]=1 AND [Total working
years]=3, [Total Package per day]*[Total working years]*7,
IIF(K8="Resignation" AND [Total working years]3), [Total Package per
day]*[Total working years]*21,"Service is less than 1 year")))

--
Build a little, test a little.


"Tia" wrote:

Dear all,
i am sorry for disturbance, iam trying t move my data frm the excel
to access and i am having troubles with the formulas, i am trying to
calculate the total gratuity of the end of service i used to use this
formula
=IF(AND(K8="Termination",(Total working years)=1),TEXT(((Total
Package per day)*(Total working years)*21),"#,#00.00")&" + "&"Ticket",
IF(AND(K8="Resignation",(Total working years)=1,(Total working years)
=3),(Total Package per day)*(Total working years)*7,IF(AND
(K8="Resignation",(Total working years)3),
(Total Package per day)*(Total working years)*21,"Service is less than
1 year")))

K8= CAN BE RESIGNATION AND SOMETIMES TERMINATION

tHANK YOU IN ADVANCE
.

 




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 09:34 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.