NESTED IIF STATEMENT. PLEASE HELP.

C

clawdogs

I need help merging the following IIF statements on a form. Both
work
seperately but I need them to work together. Both are seperate IIF
statements without else. My problem is this is calculating math and
I'm having trouble with the brackets in order to get the correct
results. Else can be the 2nd if statement but I can't seem to get it
to work.

=IIf([NOVRATE]>1,([CUMPERCENTOVNOV])-1)*([EMPLOYEE DATA
subform].Form!
TOVCOMP2)*([NOVRATE])+([EMPLOYEE DATA subform].Form!TOVCOMP2)


=IIf([NOVRATE]<1,([NOVRATE])*([EMPLOYEE DATA subform].Form!TOVCOMP2)*
([CUMPERCENTOVNOV])
 
C

clawdogs

There have been some responses in your original thread.




I need help merging the following IIF statements on a form.  Both
work
seperately but I need them to work together.  Both are seperate IIF
statements without else.  My problem is this is calculating math and
I'm having trouble with the brackets in order to get the correct
results.  Else can be the 2nd if statement but I can't seem to get it
to work.
=IIf([NOVRATE]>1,([CUMPERCENTOVNOV])-1)*([EMPLOYEE DATA
subform].Form!
TOVCOMP2)*([NOVRATE])+([EMPLOYEE DATA subform].Form!TOVCOMP2)
=IIf([NOVRATE]<1,([NOVRATE])*([EMPLOYEE DATA subform].Form!TOVCOMP2)*
([CUMPERCENTOVNOV])- Hide quoted text -

- Show quoted text -

Thanks but none of the responses helped and I had to elaborate.
 
K

KARL DEWEY

Both work seperately
What results do they produce when the IIF is not TRUE?
What is output of first one if [NOVRATE] =1 or less than 1?
 
R

R Fourt

Try
IIf([NOVRATE] > 1, ([CUMPERCENTOVNOV] - 1) * ([EMPLOYEE DATA
subform].Form!TOVCOMP2 * [NOVRATE]) + [EMPLOYEE DATA subform].Form!TOVCOMP2,
[NOVRATE] * [EMPLOYEE DATA subform].Form!TOVCOMP2 * [CUMPERCENTOVNOV])
 
B

BruceM

Then stay within that thread, or announce n tha htread that you are starting
a new one.

There have been some responses in your original thread.




I need help merging the following IIF statements on a form. Both
work
seperately but I need them to work together. Both are seperate IIF
statements without else. My problem is this is calculating math and
I'm having trouble with the brackets in order to get the correct
results. Else can be the 2nd if statement but I can't seem to get it
to work.
=IIf([NOVRATE]>1,([CUMPERCENTOVNOV])-1)*([EMPLOYEE DATA
subform].Form!
TOVCOMP2)*([NOVRATE])+([EMPLOYEE DATA subform].Form!TOVCOMP2)
=IIf([NOVRATE]<1,([NOVRATE])*([EMPLOYEE DATA subform].Form!TOVCOMP2)*
([CUMPERCENTOVNOV])- Hide quoted text -

- Show quoted text -

Thanks but none of the responses helped and I had to elaborate.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top