Here is the equation:
Fld1: 8
Fld2: 12
Fld3: 15
I need my calculating field to do two things.
FIRST, the simple part:
=([Fld3]/12)+[Fld2]+8
SECOND, where I am confused:
I need to use an IIF statement to look at Fld3 and do the following:
If FLD3 is <49 then add 1-6 points to the above
If FLD3 is >50 but <59 then add 2-12 points to above
If FLD3 is >60 but <69 then add 3-18 points to above
If FLD3 is >70 then add 4-24 points to above
My attempt at this is as follows:
=([FLD3]/12)+[FLD2]+8+[iif([FLD3]<49,int(6+1)*rnd+1),iif([FLD3]<59,int(12+2)*rnd+1),iif([FLD3]<69,int(18+3)*rnd+1),iif([FLD3]>69,int(24+4)*rnd+1)
Any suggestions as to where I am screwing this up???
Thanks
Tony
Fld1: 8
Fld2: 12
Fld3: 15
I need my calculating field to do two things.
FIRST, the simple part:
=([Fld3]/12)+[Fld2]+8
SECOND, where I am confused:
I need to use an IIF statement to look at Fld3 and do the following:
If FLD3 is <49 then add 1-6 points to the above
If FLD3 is >50 but <59 then add 2-12 points to above
If FLD3 is >60 but <69 then add 3-18 points to above
If FLD3 is >70 then add 4-24 points to above
My attempt at this is as follows:
=([FLD3]/12)+[FLD2]+8+[iif([FLD3]<49,int(6+1)*rnd+1),iif([FLD3]<59,int(12+2)*rnd+1),iif([FLD3]<69,int(18+3)*rnd+1),iif([FLD3]>69,int(24+4)*rnd+1)
Any suggestions as to where I am screwing this up???
Thanks
Tony