IIF Command in Update Query - not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thillai1966
    New Member
    • Dec 2019
    • 2

    #1

    IIF Command in Update Query - not working

    I want to update a field like 'Division' in Marks table. I want to set 'Division' field values compering'Perce ntage' field.
    I cannot update Division field using the following update query.
    Code:
    IIf([Marks]![Percentage]>60,"First",IIf([Marks]![Percentage]>50,"Second",IIf([Marks]![Percentage]>40,"Third","Fail")))
    Please help me thanks.
    Last edited by gits; Dec 23 '19, 11:34 AM. Reason: added code tags
  • thillai1966
    New Member
    • Dec 2019
    • 2

    #2
    The Percentage field was Text type and number type. Now the problem solved.

    Comment

    Working...