hallo experts!
i would like to customize an if function in vba,
that is allow the user to change the condition, value if true and value if false all in a form.
how would i achieve this please!!!
i would like to customize an if function in vba,
that is allow the user to change the condition, value if true and value if false all in a form.
how would i achieve this please!!!
Code:
Grade: IIf([Marks]>=80, "A", _
IIf([Marks]>=75,"A-", _
IIf([Marks]>=70,"B+", _
IIf([Marks]>=65,"B", _
IIf([Marks]>=60,"B-", _
IIf([Marks]>=55,"C+", _
IIf([Marks]>=50,"C", _
IIf([Marks]>=45,"C-", _
IIf([Marks]>=40,"D+", _
IIf([Marks]>=35,"D", _
IIf([Marks]>=30,"D-", _
IIf([Marks]<30,"E")
)))))))))))
Comment