Results 1 to 4 of 4
  1. #1
    kimmutua is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    2

    Question Grouping and ranking in Ms Access 2007

    May someone help me to group the data in the exam xtended query according to the student level and also guide me to rank the students according to Total marks in descending order


    Exam xtended Query
    Student Name Level Term Total Marks
    jane mutuku Form 2 one 600
    Mutua Kimanthi Form1 one 556
    Musembi Maitha Form 3 one 544
    Maitha kim Form 3 one 700

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Have you tried building a report using Grouping & Sorting features?
    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.

  3. #3
    AlexHedley's Avatar
    AlexHedley is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    England
    Posts
    180
    Hi,

    You can find a FREE Tip at http://599cd.com/tips/access/report-sorting-grouping/

    If you want to Order By Total Marks just create a Query then pull in the TotalMarks Field and in the Sort: row add Descending.

    If you want to Group By Level pull in the Level Field, turn on the Totals (Σ) and Group By Level and Sum by TotalMarks.

    Click image for larger version. 

Name:	Query3.png 
Views:	9 
Size:	91.8 KB 
ID:	12215 Click image for larger version. 

Name:	Query4.png 
Views:	16 
Size:	5.7 KB 
ID:	12216

    SQL
    SELECT Exam_xtended_Table.Level, Sum(Exam_xtended_Table.TotalMarks) AS SumOfTotalMarks
    FROM Exam_xtended_Table
    GROUP BY Exam_xtended_Table.Level
    ORDER BY Sum(Exam_xtended_Table.TotalMarks) DESC;



    Sorting
    Access Beginner 1 [http://599cd.com/site/courselist/access2010/beginner/b1/]
    Access Expert 3 [http://599cd.com/site/courselist/access2010/expert/x3/]
    Attached Thumbnails Attached Thumbnails Query1.png   Query2.png  

  4. #4
    kimmutua is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    2
    ok thanks for the help tip u just helped me alot

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

Similar Threads

  1. Export Table in Access 2007 to Multiple Workbooks in Excel 2007
    By hutchinsm in forum Import/Export Data
    Replies: 5
    Last Post: 03-01-2012, 05:23 PM
  2. Ranking (Look for previous ranking)
    By leobear in forum Queries
    Replies: 3
    Last Post: 01-10-2012, 05:58 PM
  3. Replies: 2
    Last Post: 06-18-2011, 09:55 AM
  4. Grouping, Summing, and Ranking Problem
    By cadsvc in forum Reports
    Replies: 3
    Last Post: 04-16-2011, 11:34 AM
  5. Grouping dual keys in Access 2007 Report
    By bengineer in forum Reports
    Replies: 4
    Last Post: 02-01-2011, 02:09 PM

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