Results 1 to 5 of 5
  1. #1
    dolovenature is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2012
    Posts
    14

    Ranking Students based on Score & Location and selecting Top three...

    Hi,

    As a Novice i need to require your help with following subjects...

    I am having a FORM(form1) based on TABLE(table1) with some text box & combo box & command buttons.

    One field is score which calculate the percentage of marks based on three subjects of the students.

    Another field is LOCATION.

    My problem is.....



    1) I need to Rank the Top Three students based on the SCORE field for each particular location.
    (if location is X then need to rank students under this location) and similar for location Y and so on....

    2)Need to select top ranked Three students from each location.

    3) After this selection, the remaining students need to be ranked as a whole.

    How to solve this problem???

    Regards

    Saikat

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  3. #3
    dolovenature is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2012
    Posts
    14
    Quote Originally Posted by orange View Post
    Show us your Tables and relationships.
    Actually I am having only ONE Table as Table1 with 5 Text Box, ( Name, Addr, Age, Sex, father's name), One Combo ( Location), And Three Text box for marks in three different subject and one "Score" field which is calculating % of marks.

    Now i need the students ranked based on % of marks and locality and need to select TOP three students from each location.

    The remaining students need to be ranked as a whole.

    Waiting egarly for solutions.

    Thanks
    Regards'
    saikat

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    And where exactly will you store the 3 marks for 3 separate subjects and Locations.

    Before we can help you get a "solution", you have to identify and design all aspects of your "issue/problem/opportunity".

    I am attaching a link to an Entity Relationship Diagramming tutorial. I suggest you read it thoroughly, then use it with your data to create a proper set of Tables and Relationships that support your "business".

    http://www.rogersaccesslibrary.com/T...lationship.zip

    Good luck with your project.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Review http://allenbrowne.com/subquery-01.html
    Look at example: Top n records per group

    Also, http://allenbrowne.com/ranking.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Ranking of Students based on Obtained Marks.
    By Jamaluddin in forum Access
    Replies: 1
    Last Post: 04-26-2012, 12:09 PM
  2. Replies: 2
    Last Post: 03-02-2012, 01:28 PM
  3. Selecting based on current user
    By shabbaranks in forum Programming
    Replies: 3
    Last Post: 01-27-2012, 07:07 AM
  4. Ranking (Look for previous ranking)
    By leobear in forum Queries
    Replies: 3
    Last Post: 01-10-2012, 05:58 PM
  5. Selecting records based on particular value
    By usman400 in forum Queries
    Replies: 4
    Last Post: 09-30-2011, 07:58 AM

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