If Condition Not Giving Proper Result

vagues0ul

Registered User.
Local time
Today, 01:17
Joined
Sep 13, 2018
Messages
103
I am using if condition on an unbounded textbox to display some value according to certain criteria. But its only validating the first statement. I know there will be some logical error that is driving the wrong result.

here is the statement
Code:
=IIf([fmttl]/[fmmttl]*100 >"90","A+", IIf([fmttl]/[fmmttl]*100 >="80","A", IIf([fmttl]/[fmmttl]*100 >="70","B", ,"Fail")))

when it executes, it display A+ for every field. i assume that there is some error in the >= expression :confused:
 
remove the double quote on 90, 80, 70, etc...
 
Switch([fmttl]/[fmmttl]*100 >90, "A+",[fmttl]/[fmmttl]*100 >=80, "A", [fmttl]/[fmmttl]*100 >=70,"B", True,"Fail")
 
yes and its very straigh forward.
 

Users who are viewing this thread

Back
Top Bottom