Results 1 to 3 of 3
  1. #1
    cacingwong is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2015
    Posts
    2

    Question Please help me..thanks!!!

    i want to make a query based on the ranking of the student. For example, student who ranking 1 to 14 will assign to class A. Student who ranking 15 to 29 will assign to class B. Student who ranking 30 to 45 will assign to class C .
    Click image for larger version. 

Name:	Capture.JPG 
Views:	9 
Size:	19.5 KB 
ID:	19990


    when i key in the queries. ClassNumber: IIf([Ranking]>=1 And [Ranking]<=14,"A",IIf([Ranking]>=15 And [Ranking]<=29,"B",IIf([Ranking]>=30 And [Ranking]<=45,"C")))
    it just show #error..how can i do?? Click image for larger version. 

Name:	Capture2.JPG 
Views:	9 
Size:	48.8 KB 
ID:	19991Click image for larger version. 

Name:	Capture.JPG 
Views:	9 
Size:	19.5 KB 
ID:	19990

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    There is field named ClassNumber in your tables. Why do you need it ? Are you trying to update the table based on ClassNumber field or update it ?
    Try this :
    AssignedToClass : IIf([Ranking]<15,"A",IIf([Ranking]<30,"B","C"))

  3. #3
    cacingwong is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2015
    Posts
    2

    thanks a lot

    Quote Originally Posted by amrut View Post
    There is field named ClassNumber in your tables. Why do you need it ? Are you trying to update the table based on ClassNumber field or update it ?
    Try this :
    AssignedToClass : IIf([Ranking]<15,"A",IIf([Ranking]<30,"B","C"))


    thank you amrut, can i have your email. i need your helps. actually this is my assignment in university. My lecture ask me to do class management system. The purpose is to register student and classify them into class based on their result. Need summit on next week. I am so stress about it...thanks!

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums