i'm running the below query as the control source for a level field. the result depending on the value in the marks field should set as the value for the level. Unfortunately I get the #Name? error.
=Switch([Test_Score_Card]![Marks]>79,"7",[Test_Score_Card]![Marks]>69,"6",[Test_Score_Card]![Marks]>59,"5",[Test_Score_Card]![Marks]>49,"4",[Test_Score_Card]![Marks]>39,"3",[Test_Score_Card]![Marks]>29,"2",True,"1")